Versions
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 1.7.4
Node: 9.9.0
OS: darwin x64
Angular: 5.2.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Repro steps
Add the following to tsconfig.json:
- Create a new CLI project:
ng new angular-cli-is-broken
- Add a wildcard path mapping to the tsconfig:
"paths": {
"*": ["./src/app/*"]
}
- Build the project:
Observed behavior
Resolution of modules does not work:
ERROR in ./src/app/app.module.ngfactory.js
Module not found: Error: Can't resolve '/Users/jon/GitHub/angular-cli-is-broken/src/src/app/@angular/common' in '/Users/jon/GitHub/angular-cli-is-broken/src/app'
Etc.
Desired behavior
It should resolve modules correctly, as it did in 1.6.
Mention any other details that might be useful (optional)
This worked perfectly in 1.6. You can confirm this by regressing the CLI version in package.json to 1.6, and confirming that ng build now works.
Versions
Repro steps
Add the following to tsconfig.json:
ng new angular-cli-is-brokenObserved behavior
Resolution of modules does not work:
Etc.
Desired behavior
It should resolve modules correctly, as it did in 1.6.
Mention any other details that might be useful (optional)
This worked perfectly in 1.6. You can confirm this by regressing the CLI version in package.json to 1.6, and confirming that
ng buildnow works.