spybaby1 / 360-react-pannellum

8 stars 2 forks source link

Webpack error #3

Closed grahamyesfit closed 8 months ago

grahamyesfit commented 6 years ago

Can you help with a webpack issue I'm having? When it compiles my app, I get a ton of errors indicating that it doesn't know how to load the SVG file references that are in your CSS files. I've added various different SVG loaders and I still get the error. I suspect it's because the CSS loader doesn't know how to resolve the SVG calls. Any help would be appreciated.

Here is an example of a webpack compile error:

ERROR in ./~/360-react-pannellum/lib/components/360-react-pannellum/lib/pannellum/css/img/compass.svg Module parse failed: [...]\360-react-pannellum\lib\components\360-react-pannellum\lib\pannellum\css\img\compass.svg Unexpected token (1:0) You may need an appropriate loader to handle this file type.