webpack-contrib / file-loader

File Loader
MIT License
1.86k stars 255 forks source link

OTS parsing error: invalid version tag | Failed to decode downloaded font: http://localhost:3000/static/7542ab376339625d813fe71d074ee925.woff #400

Open geroylaurence opened 3 years ago

geroylaurence commented 3 years ago

Actual Behavior

I got this warning on my project and my imported custom font is not applying as well.

I'm currently merging my application from webpack version 3 to webpack version 4, on my old version of webpack (ver3) my file-loader integration is fully working. I need help

image

Code

https://gist.github.com/geroylaurence/5f2a2ec7ad8f18333a40537cf598b444

How Do We Reproduce?

the font seems to be compiled in build folder, by the time I call the font in CSS fil then the warning pops. app.css html { font-size: 100%; font-family: 'proxima_nova_alt_rgregular'; }

alexander-akait commented 3 years ago

Can you try to remove WriteFilePlugin?

geroylaurence commented 3 years ago

Can you try to remove WriteFilePlugin?

didn't work, that "write-file-plugin" is a default code from "react-universal-component" boilerplate.

alexander-akait commented 3 years ago

Sorry, I can't fix problem, because bug not from file-loader