Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run build:project:externals - Generating browser application bundles (phase: setup)...An unhandled exception occurred: Script file node_modules/rxjs/bundles/rxjs.umd.js does not exist. #349

Open
dinbtechit opened this issue Oct 2, 2022 · 2 comments

Comments

@dinbtechit
Copy link

npm run build:project:externals - Generating browser application bundles (phase: setup)...An unhandled exception occurred: Script file node_modules/rxjs/bundles/rxjs.umd.js does not exist.

npm run build:project:externals 

output:

⠋ Generating browser application bundles (phase: setup)...An unhandled exception occurred: Script file node_modules/rxjs/bundles/rxjs.umd.js does not exist.
See "/private/var/folders/8n/z0ncgbf563j_rrgrt15rsw_40000gn/T/ng-NGDCza/angular-errors.log" for further details.
⠦ Generating browser application bundles (phase: setup)...     <--<< STUCK IN THIS STEP.

/private/var/folders/8n/z0ncgbf563j_rrgrt15rsw_40000gn/T/ng-NGDCza/angular-errors.log

[error] Error: Script file node_modules/rxjs/bundles/rxjs.umd.js does not exist.
    at /project/myproject/node_modules/@angular-devkit/build-angular/src/webpack/utils/helpers.js:177:23
    at Array.reduce (<anonymous>)
    at globalScriptsByBundleName (/project/myproject/node_modules/@angular-devkit/build-angular/src/webpack/utils/helpers.js:169:58)
    at getCommonConfig (/project/myproject/node_modules/@angular-devkit/build-angular/src/webpack/configs/common.js:100:89)
    at async Promise.all (index 0)
    at async generateWebpackConfig (/project/myproject/node_modules/@angular-devkit/build-angular/src/utils/webpack-browser-config.js:64:22)
    at async generateBrowserWebpackConfigFromContext (/project/myproject/node_modules/@angular-devkit/build-angular/src/utils/webpack-browser-config.js:125:20)
    at async generateI18nBrowserWebpackConfigFromContext (/project/myproject/node_modules/@angular-devkit/build-angular/src/utils/webpack-browser-config.js:73:20)
    at async initialize (/project/myproject/node_modules/@angular-devkit/build-angular/src/builders/browser/index.js:71:70)
    at async SwitchMapSubscriber.project (/project/myproject/node_modules/@angular-devkit/build-angular/src/builders/browser/index.js:113:32)

@FabianElsmer
Copy link

FabianElsmer commented Oct 14, 2022

This is a known issue

Angular 13 does not provide UMD bundles anymore, see also #314

Angular 13 does not create this legacy UMD bundle format anymore, but there is a workaround to build the necessary bundles yourself: #314 (comment)

What I don't understand yet, is why use the UMD bundles at all, instead of using the MJS bundles Angular offers, I'm sure it has something to do with browser compatibility. Not sure if some changes in the build process would make it possible to use the MJS bundles directly without getting a broken main bundle back

I got the build working with Angular 13 today, let me know if you need help

@divyaadurai
Copy link

This is a known issue

Angular 13 does not provide UMD bundles anymore, see also #314

Angular 13 does not create this legacy UMD bundle format anymore, but there is a workaround to build the necessary bundles yourself: #314 (comment)

What I don't understand yet, is why use the UMD bundles at all, instead of using the MJS bundles Angular offers, I'm sure it has something to do with browser compatibility. Not sure if some changes in the build process would make it possible to use the MJS bundles directly without getting a broken main bundle back

I got the build working with Angular 13 today, let me know if you need help

@FabianElsmer, how did you made it work with Angular 13 ? Can you share the details ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants