andreypopp / react-fa

DEPRECATED: use https://github.com/FortAwesome/react-fontawesome instead
http://andreypopp.github.io/react-fa/
489 stars 42 forks source link

Failed to decode downloaded font #50

Open JuHwon opened 7 years ago

JuHwon commented 7 years ago

Im using webpack to compile my application. When im using react-fa the server is always sending the index.html page and thats why the parsing fails i guess. image

I have also tried to write the absolute public path to http://localhost:3000/. Though i get the same result. No FontAwesome. I looked into the css and the fontpath is still relative. Idk if this matters. image

I do have the configuration of the react-boilerplate. The production build is working fine though.

I have also tried the extract-text-webpack-plugin described in your readme. Still the same result. Am i doing something wrong?

JuHwon commented 7 years ago

When i am building and starting the app for production once.. it works. Even if i remove the build folder after it. Though it does not work when i have a new project clone.

andreypopp commented 7 years ago

I'm not sure how to help here, if you are using react-boilerplate — consider creating an issue there. If you put a repo somewhere with clear steps described on how to reproduce the issue — then I can help.

JuHwon commented 7 years ago

i have created a new project with the failure now. You can see the missing font on the frontpage. image

i do not know whats wrong with my config :/ i have also added publicPath: 'http://127.0.0.1:3030/', to my webpack dev configuration.

Just clone the project and type npm install && npm start and you will see.

JuHwon commented 7 years ago

@andreypopp does someone have a hint what i can do/try?