Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 6 | Webpack Production Build Error

quick breakdown:

• Upgraded my Angular 5 application to Angular 6. • Installed rxjs 6 & rxjs-compat 6 • Build using Webpack. • Dev build works fine. • Production build yields the following error:

ERROR in chunk app [entry] bundle.js /Users/Usr_Mac/Desktop/Angular/node_modules/@angular/core/fesm5/core.js RuntimeTemplate.moduleId(): Module /Users/Usr_Mac/Desktop/Angular/node_modules/rxjs/_esm5/internal/Observable.jshas no id. This should not happen.

like image 296
Mazlan Alam Malik Avatar asked Nov 07 '22 06:11

Mazlan Alam Malik


1 Answers

This was a webpack bug - I had this issue at webpack 4.10.1. Upgrading to 4.10.2 fixed it.

https://github.com/webpack/webpack/issues/7443

like image 160
Josh Werts Avatar answered Nov 11 '22 13:11

Josh Werts