TrilonIO / aspnetcore-angular-universal

ASP.NET Core & Angular Universal advanced starter - PWA w/ server-side rendering for SEO, Bootstrap, i18n internationalization, TypeScript, unit testing, WebAPI REST setup, SignalR, Swagger docs, and more! By @TrilonIO
https://www.trilon.io
MIT License
1.46k stars 433 forks source link

Getting error ERROR in ./~/font-awesome/fonts/fontawesome-webfont.svg?v=4.7.0 #624

Open maneeshrao66 opened 6 years ago

maneeshrao66 commented 6 years ago

ERROR in ./~/font-awesome/fonts/fontawesome-webfont.svg?v=4.7.0 Module parse failed: /var/www/html/projectname/node_modules/font-awesome/fonts/fontawesome-webfont.svg?v=4.7.0 Unexpected token (1:0) You may need an appropriate loader to handle this file type. | <?xml version="1.0" standalone="no"?> | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > | @ ./~/css-loader!./~/sass-loader!./~/font-awesome-sass-loader/font-awesome-sass-styles.loader.js!./~/font-awesome-sass-loader/font-awesome-sass.config.js 6:30915-30977 @ ./~/style-loader!./~/css-loader!./~/sass-loader!./~/font-awesome-sass-loader/font-awesome-sass-styles.loader.js!./~/font-awesome-sass-loader/font-awesome-sass.config.js @ ./~/font-awesome-sass-loader/index.js @ ./src/vendor.browser.ts

Please help me out.

GRIMMR3AP3R commented 6 years ago

Probably need more about your setup to tell what is going wrong but you should only need to put the link it the _Layout.cshtml. I have done this a ton and never had any problems with either the css or svg versions.