Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use octicons-plain-react #7161

Merged
merged 2 commits into from
Dec 16, 2023
Merged

Use octicons-plain-react #7161

merged 2 commits into from
Dec 16, 2023

Conversation

fregante
Copy link
Member

@fregante fregante commented Dec 15, 2023

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
11 checks passed
@fregante fregante deleted the octicons-plain-react branch December 16, 2023 05:28
Copy link

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?

Copy link
Member Author

@fregante fregante May 10, 2024

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

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