Aurelia template threw syntaxerror #758

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

Originally created by @nicewk on 5/16/2017

After generate Aurelia app, it runs without error with dotnet cli, but doesn't work in the vs2017 with iis express. A exception throw from the code: app.UseWebpackDevMiddleware(.,.,). The error message as below:
Call to Node module failed with error: SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:404:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.requireNewCopy (D:\Labs\Aurelia\node_modules\aspnet-webpack\RequireNewCopy.js:16:16)
at createWebpackDevServer (D:\Labs\Aurelia\node_modules\aspnet-webpack\WebpackDevMiddleware.js:171:48)
at createWebpackDevServer (C:\Users\n9wal\AppData\Local\Temp\tmpE47F.tmp:74:50)

*Originally created by @nicewk on 5/16/2017* After generate Aurelia app, it runs without error with dotnet cli, but doesn't work in the vs2017 with iis express. A exception throw from the code: app.UseWebpackDevMiddleware(.,.,). The error message as below: Call to Node module failed with error: SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:404:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.requireNewCopy (D:\Labs\Aurelia\node_modules\aspnet-webpack\RequireNewCopy.js:16:16) at createWebpackDevServer (D:\Labs\Aurelia\node_modules\aspnet-webpack\WebpackDevMiddleware.js:171:48) at createWebpackDevServer (C:\Users\n9wal\AppData\Local\Temp\tmpE47F.tmp:74:50)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#758
No description provided.