Webpack: Failed to decode downloaded font: OTS parsing error: invalid version tag
See original GitHub issueDescription
Since v0.6.1, I’m having an issue with the font I’m using. I was on 0.2.1 before.
Failed to decode downloaded font:
OTS parsing error: invalid version tag
Expected behavior
The font should be loaded properly and displayed correctly.
Actual behavior
The font is not displayed and an empty rectangle appear in place of the font/icon
Environment
react-scripts@0.6.1 node v4.5.0 npm 2.15.9
Operating system: OSX 10.11.5 El Capitain Browser and version: Chrome 53.0.2785.116 64b
Reproducible Demo
Font samples here : https://www.dropbox.com/sh/9gpxshq0t4x1j8n/AABuyhDqcMCQ3egSBa25Pdp3a?dl=0
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Failed to decode downloaded font, OTS parsing error
Failed to decode downloaded font, OTS parsing error: invalid version tag + rails 4 · It could be a number of things: the...
Read more >OTS parsing error: invalid version tag - Laracasts
After deploying to a live server (set up on a 'develop' branch, local not prod) I found that bootstrap fonts were not being...
Read more >CSS : Failed to decode downloaded font, OTS parsing error
CSS : Failed to decode downloaded font, OTS parsing error : invalid version tag + rails 4 [ Beautify Your Computer ...
Read more >Error when compiling with fonts - sage - Roots Discourse
Using Sage 9.0.10, I get this error when running yarn build with a font ... Failed to decode downloaded font and OTS parsing...
Read more >Failed to decode downloaded font, OTS parsing error
Failed to decode downloaded font: http://localhost:3000/fonts/ionicons.ttf?v=2.0.0 prospects:1 OTS parsing error: invalid version tag Failed to decode ...
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
I’ve finded the issue…
The fonts was located in
public/fonts/
and css inpublic/css/
. The font was loaded from the css withurl(fonts/myfont.woff)
so the font should have been placed inpublic/css/fonts
. Stange about this issue though.My two cents: I was able to solve the issue importing the fonts from the index.scss (.css) file in the src/ folder: