Friday, January 31, 2020

I tried in vain to again get tests to run in the canned Angular 8 application you may make with .NET Core 3.

I keep hitting up against this and not getting around it:

ERROR in multi ./styles.css
Module not found: Error: Can't resolve 'C:\Apps\Experiment\WebApplication\WebApplication\ClientApp\styles.css' in
      'C:\Apps\Experiment\WebApplication\WebApplication\ClientApp'
resolve 'C:\Apps\Experiment\WebApplication\WebApplication\ClientApp\styles.css' in
      'C:\Apps\Experiment\WebApplication\WebApplication\ClientApp'

 
 

When the shell shits blood like this what should we do? This suggests that you should run:

npm install style-loader css-loader

 
 

...I then jam this into webpack.config.js

resolve: { extensions: ['', '.js', '.jsx','.css'],//add '.css' "root": __dirname }

 
 

There is no webpack.config.js however. This gives you some gunk for building one out and also suggests you install this plugin for Visual Studio 2019, the WebPack Task Runner. The last of the three links I give in this blog posting suggests running these commands:

  • npm install webpack -g
  • npm install webpack-dev-server -g
  • npm install babel-core --save-dev

No comments:

Post a Comment