webpack errors out of the box #668

Closed
opened 2025-08-09 17:17:10 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @jagalves on 6/12/2017

Been trying to make the AureliaSpa work for a while now with different methods but none seem to work out of the box. This was one of those tries:

  • node v6.11.0
  • npm 3.10.10

(clean directory)
PS# npm install -g yo generator-aspnetcore-spa
PS# yo aspnetcore-spa

framework -> Aurelia

Everything seems to go fine until it calls webpack (the second step, vendor config seems to run fine):

    ERROR in e:/code/todo/~/bootstrap/dist/fonts/glyphicons-halflings-regular.eot
    Module parse failed: e:\code\todo\node_modules\bootstrap\dist\fonts\glyphicons-halflings-regular.eot Unexpected character '�' (1:0)
    You may need an appropriate loader to handle this file type.
    (Source code omitted for this binary file)
     @ e:/code/todo/~/bootstrap/dist/css/bootstrap.css 6:4445-4497 6:4520-4572
     @ e:/code/todo/ClientApp/boot.ts
     @ e:/code/todo/~/aurelia-webpack-plugin/dist/aurelia-entry.js
     @ multi aurelia-webpack-plugin/dist/aurelia-entry aurelia-polyfills aurelia-loader-webpack aurelia-bootstrapper

This x4 for bootstrap fonts: .eot, .woff2, .woff, and .ttf files.

All the methods I tried, including dotnet new, ended up with this error. Executing dotnet run will give similar errors on the browser console, both in development and production modes.

Any clue on what's going on and what I can try to fix this?

*Originally created by @jagalves on 6/12/2017* Been trying to make the AureliaSpa work for a while now with different methods but none seem to work out of the box. This was one of those tries: * node v6.11.0 * npm 3.10.10 (clean directory) PS# npm install -g yo generator-aspnetcore-spa PS# yo aspnetcore-spa > framework -> Aurelia Everything seems to go fine until it calls webpack (the second step, vendor config seems to run fine): ``` ERROR in e:/code/todo/~/bootstrap/dist/fonts/glyphicons-halflings-regular.eot Module parse failed: e:\code\todo\node_modules\bootstrap\dist\fonts\glyphicons-halflings-regular.eot Unexpected character '�' (1:0) You may need an appropriate loader to handle this file type. (Source code omitted for this binary file) @ e:/code/todo/~/bootstrap/dist/css/bootstrap.css 6:4445-4497 6:4520-4572 @ e:/code/todo/ClientApp/boot.ts @ e:/code/todo/~/aurelia-webpack-plugin/dist/aurelia-entry.js @ multi aurelia-webpack-plugin/dist/aurelia-entry aurelia-polyfills aurelia-loader-webpack aurelia-bootstrapper ``` This x4 for bootstrap fonts: .eot, .woff2, .woff, and .ttf files. All the methods I tried, including dotnet new, ended up with this error. Executing dotnet run will give similar errors on the browser console, both in development and production modes. Any clue on what's going on and what I can try to fix this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#668
No description provided.