Closed darkbasic closed 6 years ago
Same issue but using BehaviorSubject
I noticed that in the folder 'node_modules\@angular-devkit\build-optimizer\' there was no 'node_modules' folder. When copying that folder from an other project my 'ng build --prod' succeeds.
Maybe this helps in solving the problem.
This issue is a duplicate of https://github.com/angular/angular-cli/issues/8615 I believe, and should be fixed when https://github.com/angular/devkit/pull/299 is merged.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Versions
Repro steps
ejected
to false in.angular-cli.json
and runng serve --prod
Observed behavior
Desired behavior
Should compile the code. Older versions of angular-cli did work fine. See the master branch here which uses 1.4.7: https://github.com/darkbasic/angularcli-meteor
Mention any other details that might be useful (optional)
The code works fine without --prod.