I encountered the following error in my EC2 build environment, but I am unable to reproduce it on my local machine:
ERROR in node_modules/rxjs-compat/add/observable/dom/webSocket.d.ts(1,46): error TS2307: Cannot find module 'rxjs/websocket'.
In my local setup, I have tried:
ng build
ng build --configuration=feature
ng build --prod
dependencies: { ... }
"devDependencies": { "@angular-devkit/build-angular": "0.13.0", "@angular/cli": "^6.2.9", ... } }
I am uncertain about the cause of this issue and how to replicate it locally for better debugging. Please share your insights.