You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Sorry @beatsm. This is due to two breaking changes introduced in dependencies: one in Webpack (as mentioned by @nil4); the other in TypeScript. I'll try to publish an updated Yeoman generator today that fixes both, but in the meantime, you can fix your project like this:
Run yo aspnetcore-spa to create your Aurelia app. Compilation will fail with the not a loader message.
Edit your newly-generated package.json file to lock on to Webpack 2.1.0-beta.25 exactly (rather than allowing newer betas), since that's the only version compatible with Aurelia's webpack loader at the moment. So, edit line 42 so instead of saying "^2.1.0-beta.25", it says "2.1.0-beta.25" (i.e., remove the ^ character).
Back in your command prompt, run npm install again to make your change take effect
Also edit ClientApp/app/components/fetchdata/fetchdata.ts, changing line 16 from this.forecasts = data; to this.forecasts = data as any;.
Now things will build and run as expected. Run webpack --config webpack.config.vendor.js to rebuild your vendor files, then webpack to rebuild your app files, then dotnet run.
Activity
nil4 commentedon Nov 28, 2016
@beatsm It's probably related to #444; recent versions of Webpack require the loader name to be spelled-out in full, e.g.
css-loadernot justcss.SteveSandersonMS commentedon Nov 28, 2016
Sorry @beatsm. This is due to two breaking changes introduced in dependencies: one in Webpack (as mentioned by @nil4); the other in TypeScript. I'll try to publish an updated Yeoman generator today that fixes both, but in the meantime, you can fix your project like this:
yo aspnetcore-spato create your Aurelia app. Compilation will fail with thenot a loadermessage.package.jsonfile to lock on to Webpack 2.1.0-beta.25 exactly (rather than allowing newer betas), since that's the only version compatible with Aurelia's webpack loader at the moment. So, edit line 42 so instead of saying"^2.1.0-beta.25", it says"2.1.0-beta.25"(i.e., remove the^character).npm installagain to make your change take effectClientApp/app/components/fetchdata/fetchdata.ts, changing line 16 fromthis.forecasts = data;tothis.forecasts = data as any;.Now things will build and run as expected. Run
webpack --config webpack.config.vendor.jsto rebuild your vendor files, thenwebpackto rebuild your app files, thendotnet run.beatsm commentedon Nov 28, 2016
@nil4 Thanks v much. Also @SteveSandersonMS keep up the good work, miss your talks at DotNetDevNet......
SteveSandersonMS commentedon Nov 28, 2016
Updated template 0.6.1 is now published