manfredsteyer / ngx-build-plus

Extend the Angular CLI's default build behavior without ejecting, e. g. for Angular Elements
1.19k stars 136 forks source link

Error: ENOENT: no such file or directory, scandir in Angular V13 #313

Open RoopanV opened 2 years ago

RoopanV commented 2 years ago

In angular V13, with extractLicenses true facing the above issue. But building with angular native bundler (@angular-devkit/build-angular:browser) the above issue is not coming.

[error] HookWebpackError: ENOENT: no such file or directory, scandir at makeWebpackError (/Users/Desktop/illusion/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/HookWebpackError.js:48:9) at /Users/Desktop/illusion/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/Compilation.js:3055:12 at eval (eval at create (/Users/Desktop/illusion/node_modules/tapable/lib/HookCodeFactory.js:33:10), :31:1) at fn (/Users/Desktop/illusion/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/Compilation.js:478:17) at _next5 (eval at create (/Users/Desktop/illusion/node_modules/tapable/lib/HookCodeFactory.js:33:10), :28:1) at eval (eval at create (/Users/Desktop/illusion/node_modules/tapable/lib/HookCodeFactory.js:33:10), :46:1) at fn (/Users/Desktop/illusion/node_modules/@angular-devkit/build-angular/node_modules/webpack/lib/Compilation.js:490:9) at _next4 (eval at create (/Users/Desktop/illusion/node_modules/tapable/lib/HookCodeFactory.js:33:10), :41:1) at eval (eval at create (/Users/Desktop/illusion/node_modules/tapable/lib/HookCodeFactory.js:33:10), :60:1) at runMicrotasks ()

Even though feels like an issue with some other plugin but the issue is not appearing in angular native builder (@angular-devkit/build-angular:browser) makes me to feels like something has to do with ngx build plus.

Thanks in Advance.

aaryavrate commented 2 years ago

How did you solve this?

EmirhanAksoy commented 1 year ago

same here

minijus commented 1 year ago

Workaround provided by @Coly010 on nrwl/nx migth be applicable here as well. See: https://github.com/nrwl/nx/issues/12317#issuecomment-1275967489