Created a new project in Visual Studio based on a template using Angular, where another SampleDataController is being created.

Without touching anything, I try to start it and catch such a list of errors:

TestApp> fail: Microsoft.AspNetCore.SpaServices [0] TestApp>
ERROR in multi ./src/styles.css ./node_modules/bootstrap/dist/css/bootstrap.min.css TestApp> Found: Error: Can't resolve 'E: \' in 'E:! Projects! TFS \ Services \ TestProject \ TestApp \ TestApp \ ClientApp 'TestApp> ERROR in multi ./src/styles.css ./node_modules/bootstrap/dist/css/bootstrap.min.css TestApp> Module not found: Error: Can't resolve 'E: \' in 'E:! Projects! TFS \ Services \ TestProject \ TestApp \ TestApp \ ClientApp' TestApp> ERROR in multi webpack-dev-server / client? http://0.0.0.0 Start ./src/main.ts TestApp> Module not found: Error: Can't resolve 'E: \' in 'E:! Projects! TFS \ Services \ TestProject \ TestApp \ TestApp \ ClientApp 'TestApp> ERROR in multi ./src/polyfills.ts TestApp> Module: Found: Error: Can't resolve' E: \ 'in' E:! Projects! TFS \ Services \ TestProject \ TestApp \ TestApp \ ClientApp ' TestApp> Error: Can't resolve 'E: \' in ': Projects! TFS \ Octop usServices \ TestProject \ TestApp \ TestApp \ Clien tApp': TestApp> Error: Can't resolve 'E: \' in 'E:! Projects! TFS \ Services \ AssemblyStora ge \ TestApp \ TestApp \ ClientApp' TestApp> TestApp> - compiler.js: 76 TestApp> [ClientApp] / [ html-webpack-plugin] /lib/compiler.js:76:16 TestApp> TestApp> - Compiler.js: 300 compile TestApp>
[ClientApp] / [webpack] /lib/Compiler.js天00:11 TestApp> TestApp> - Compiler.js: 510 applyPluginsAsync.err TestApp>
[ClientApp] / [webpack] /lib/Compiler.js Dep10:14 TestApp> TestApp> - Tapable.js: 202 next TestApp>
[ClientApp] / [tapable] /lib/Tapable.js:202:11 TestApp> TestApp> - CachePlugin.js: 78 Compiler. TestApp>
[ClientApp] / [webpack] /lib/CachePlugin.js:78.07 TestApp> TestApp> - Tapable.js: 206 Compiler.applyPluginsAsyncSeries TestApp>
[ClientApp] / [tapable] /lib/Tapable.js:206:13 TestApp> TestApp> - Compiler.js: 507 compilation.seal.err TestApp>
[ClientApp] / [webpack] /lib/Compiler.js:507:11 TestApp> TestApp> - Tapable.js: 202 next TestApp>
[ClientApp] / [tapable] /lib/Tapable.js:202:11 TestApp> TestApp> - suppress-entry-chunks-webpack-plugin.js: 38 Compilation.compilation.plugin TestApp>
[ClientApp] / [@ angular] /cli/plugins/suppress-entry-chunks-webpack-plugin.js.73 8:17 TestApp> TestApp> - Tapable.js: 206 Compilation.applyPluginsAsyncSeries TestApp>
[ClientApp] / [tapable] /lib/Tapable.js:206:13 TestApp> TestApp> - Compilation.js: 677 applyPluginsAsync.err TestApp>
[ClientApp] / [webpack] /lib/Compilation.js:677:19 TestApp> TestApp>
- Tapable.js: 195 Compilation.applyPluginsAsyncSeries TestApp> [ClientApp] / [tapable] /lib/Tapable.js:195:46 TestApp> TestApp> - Compilation.js: 668 applyPluginsAsync.err TestApp>
[ClientApp] / [webpack] /lib/Compilation.js:668:11 TestApp> TestApp>
- Tapable.js: 195 Compilation.applyPluginsAsyncSeries TestApp> [ClientApp] / [tapable] /lib/Tapable.js:195:46 TestApp> TestApp> - Compilation.js: 663 applyPluginsAsync.err TestApp>
[ClientApp] / [webpack] /lib/Compilation.js:663:10 TestApp> TestApp>
- Tapable.js: 195 Compilation. 2] TestApp>
Request finished in 13874.1534ms 404 text / html; charset = utf-8

And in the browser flaunts Cannot GET / .

Tell me what I missed? In theory, a template project should work out of the box.

If you need more information, I will provide it.

npm install it spits out to me:

enter image description here

  • did npm install do? and it may be necessary to knock out the front part, through the ng build (the command may differ, since it is not known what version of the angulyar is and how it is integrated into the template) - Sergey Glazirin
  • Now did and did not help ... = ( - iluxa1810
  • On ng build I catch just the errors that VS threw me. - iluxa1810
  • It seems that he swears on the path, do you have an E drive? Can't resolve 'E:\' in 'E:!Projects!TFS\Services\TestProject\TestApp\TestApp\ClientApp' - Sergey Glazirin
  • Yes. Maybe the exclamation mark does not like? - iluxa1810

1 answer 1

In general, the point was that there were exclamation marks "!" On the way to the project. and the collector did not like it.

Once transferred to the root of the disk, it all worked.

There is a discussion here .