8.0.0-rc.2 ng build app named rxjs01 created with --enableIvy=true fails with 'ENOENT: no such file or directory, open 'C:/dev/tests/rxjs/package.json' #14317
Labels
area: @ngtools/webpack
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Unknown
Description
I have created new project named
rxjs01
with Angular CLI 8.0.0-rc.2 with--enableIvy=true
but the build withnpm run build
fails.🔬 Minimal Reproduction
npx @angular/cli@8.0.0-rc.2 new rxjs01 --enableIvy=true
cd rxjs01
npm run build
🔥 Exception or Error
It looks like it does not like the name
rxjs01
for a project created with--enableIvy=true
. For some reason build process tries to findpackage.json
file in non-existing folder (...rxjs/package.json
instead of...rxjs01/package.json
). If I do exactly the same but with another name sayivy01
, the build process completes successfully. If I do not use--enableIvy=true
then a project with namerxjs01
can build successfully.So to summarize:
npx @angular/cli@8.0.0-rc.2 new rxjs01 --enableIvy=true
cd rxjs01
npm run build
Build fails with ERROR in ENOENT: no such file or directory, open 'C:/dev/tests/rxjs/package.json'
npx @angular/cli@8.0.0-rc.2 new ivy01 --enableIvy=true
cd ivy01
npm run build
Build succeeds
npx @angular/cli@8.0.0-rc.2 new rxjs01
cd rxjs01
npm run build
Build succeeds
And this is the full npm error log mentioned in the npm error output:
The error output if I run
npm run build -- --verbose
is attachedng-build-verbose.txt
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: