Skip to content

Use octicons-plain-react - #7161

Merged
fregante merged 2 commits into
mainfrom
octicons-plain-react
Dec 16, 2023
Merged

fregante merged 2 commits into
mainfrom
octicons-plain-react

Conversation

@fregante

@fregante fregante commented Dec 15, 2023 •

Copy link
Copy Markdown
Member

It doesn't look like Octicons is updated that often so it's best not to be blocked by them. It also has a few annoyances that we can just fix in our repo instead.

This has the nice benefit of moving the SVG->React transformation and complexity away from our build.

Screenshot

Before After
Screenshot 5 Screenshot 4

The new SVGs have the class before the xmlns attribute due to

https://github.com/fregante/octicons-plain-react/blob/13b7daf92581954247ee68a292f83edffae7b680/scripts/prepack.sh#L11

Screenshot 3

@fregante fregante added the meta Related to Refined GitHub itself label Dec 15, 2023
@fregante
fregante merged commit f5e5052 into main Dec 16, 2023
@fregante
fregante deleted the octicons-plain-react branch December 16, 2023 05:28
Comment thread package.json

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm having trouble getting this project running in my local dev environment, with "TS2307: Cannot find module" errors for all the octicons-plain-react imports.. @fregante, would this be a repo or dev env issue?

@fregante fregante May 10, 2024 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you using the right Node and npm version? I think it should be node 20 now. The install works on CI so it's definitely not a repo issue

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just tested with NodeJS 20.13.1, built the project without any issues. sorry I didn't think to try that first, definitely not a repo issue then. thank you. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

Review @primer/octicons-react usage, update/replace dependency

2 participants