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 }}
Repository navigation
ng test/build fail after "ng new" with project name "webpack" #22902
Which @angular/* package(s) are the source of the bug?
compiler-cli
Is this a regression?
No
Description
After scaffolding a new project with the project name "webpack" commands like ng test and ng build fail. Process:
ng new
? What name would you like to use for the new workspace and initial project? webpack
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS
Please provide a link to a minimal reproduction of the bug
none
Please provide the exception or error you saw
ng test
✔ Browser application bundle generation complete.
./src/test.ts:10:8 - Error: Module parse failed: Unexpected token (10:8)
File was processed with these loaders:
* ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js
You may need an additional loader to handle the result of these loaders.
| } from '@angular/platform-browser-dynamic/testing';
|
> declare const require: {
| context(path: string, deep?: boolean, filter?: RegExp): {
| <T>(id: string): T;
Please provide the environment you discovered this bug in (run ng version)
Activity
fix(@angular-devkit/build-angular): add `node_modules` prefix to excl…
fix(@angular-devkit/build-angular): add `node_modules` prefix to excl…
angular-automatic-lock-bot commentedon Apr 30, 2022
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.