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
Yes, the previous version in which this bug was not present was 10.0.1.
Description
After running ng update @angular/cli --next in order to fix issue #18040 , the build fails with the error below. It appears the migration did not update a path in src/tsconfig.app.json. After fixing that, there is another error with tsconfig.json which extends a non-existent configuration, and the compiler options from base are missing. After fixing that, the build succeeds. I reproduced with a new application generated with version 10.0.1.
🔬 Minimal Reproduction
> ng new my-app
> ng build
> ng update @angular/cli --next
> ng build
🔥 Exception or Error
>[email protected] build /Users/trevor/my-app
> ng build
An unhandled exception occurred: error TS5083: Cannot read file '/Users/trevor/MyApp/tsconfig.base.json'.
See "/private/var/folders/lt/77mxdc9s0bl0ff37cm33cjzh0000gn/T/ng-bqLn9R/angular-errors.log"for further details.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR![email protected] build: `ng build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/trevor/.npm/_logs/2020-08-14T19_44_27_149Z-debug.log
>[email protected] build /Users/trevor/my-app
> ng build
An unhandled exception occurred: error TS5083: Cannot read file '/Users/trevor/MyApp/tsconfig.json'.
See "/private/var/folders/lt/77mxdc9s0bl0ff37cm33cjzh0000gn/T/ng-K3RBoq/angular-errors.log"for further details.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR![email protected] build: `ng build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/trevor/.npm/_logs/2020-08-14T20_20_25_913Z-debug.log
+1 after running the 10.1 migration introduced in #18478 my tsconfig.json decided it needs to extend a non-existent config, and tsconfig.base.json was deleted, while tsconfig.app.json was not and still reference .base
Further to this the migration also didn't touch the tsconfig.json in the e2e folder, which still wants to point to ../tsconfig.base.json which no longer exists.
🐞 Bug report
Command
Is this a regression?
Yes, the previous version in which this bug was not present was 10.0.1.
Description
After running
ng update @angular/cli --next
in order to fix issue #18040 , the build fails with the error below. It appears the migration did not update a path insrc/tsconfig.app.json
. After fixing that, there is another error withtsconfig.json
which extends a non-existent configuration, and the compiler options from base are missing. After fixing that, the build succeeds. I reproduced with a new application generated with version 10.0.1.🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
Sent from my pool office, cheers! 🍻
The text was updated successfully, but these errors were encountered: