Load font (Semantic-UI React)
See original GitHub issueHey,
I’m tried to use CRA with Semantic UI React
Everything is good, but ONE feature doesnt work : the Icon. Webpack can’t load .woff and .ttf.
Here’s my error with Firefox :
"downloadable font: invalid version tag (font-family: "Icons" style:normal weight:normal stretch:normal src index:2)
source http://localhost:3000/themes/default/assets/fonts/icons.woff
downloadable font: rejected by sanitizer (font-family : "Icons" style:normal weight:normal stretch:normal src index:2)
source http://localhost:3000/themes/default/assets/fonts/icons.woff"
I have the same error but with *.ttf files.
I suppose that with CRA, you can’t add new loaders to Webpack right ?
Any ideas ?
Thanks a lot.
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Theming - Semantic UI React
Theming with Create React App · Remove existing styles · Install required dependencies · Scaffold custom styles · theme.config · Last but not...
Read more >Use a different font in Semantic-UI | by Yuki Yao | Medium
Here is how I did it. To get the title and a couple of headers use font Montserrat. I simply did it with...
Read more >Customizing Semantic UI React font-family, but can't find src ...
The only way to change that font would be to recompile your own CSS. It sounds like you are importing the Semantic UI...
Read more >Semantic-UI-React icon-font issues when using React-Router ...
setup Meteor 2.5.0 with React frontend Semantic-UI-React (SUIR) React-Router v6 (same issue with v5) Issue When loading the app on a second ...
Read more >semantic-ui-react - npm
The official Semantic-UI-React integration.. Latest version: 2.1.4, last published: a month ago. Start using semantic-ui-react in your ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You also get this issue if you import font-awesome to a create react app. Problem is that webpack needs this line of code to support WOFF, WOFF2, EOT, TTF and OTF font file types. { test: /.(woff|woff2|eot|ttf|otf)$/, use: [‘file-loader’], }, Please make an option to extend the webpack config in some way… Like angular have the angular.config file also should you make a react.config file to handle issues.
@c0d3x any way to do this without ejecting?