vyakymenko / angular-seed-express

[DEPRECATED, Please use https://github.com/vyakymenko/angular-express] Extensible, reliable and modular starter project for Angular 7 with statically typed build AoT compilation, Express server and PM2 Daemon.

Home Page:https://github.com/vyakymenko/angular-seed-express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Production build rxjs resolution issues - ref 2118 in parent seed

redevill opened this issue · comments

I'm submitting a ... (check one with "x")

For Release 6.0.1:
[x ] bug report => search github for a similar issue or PR before submitting
The same issue did exist in the parent seed issue - 2118. This issue was closed, however it appears that a couple of folks are having this problem 26 Jan

Current behavior

Same as 2118 - during a prod build, SystemJS is not able to resolve rxjs/operators
build.dev works fine.

Expected behavior

Build without error.

Minimal reproduction of the problem with instructions
npm run build.prod with rxjs imports in the project

Please tell us about your environment:

mac, webstorm, npm, Seed 6.0.1

  • Node: node --version = 9.10.1

Thanks in advance
Eti

Hey folks,

For anyone else having this issue (when running build.prod) on the last release tag 6.0.1:
Error: Error on fetch for rxjs/operators.js at file:///Users/Eti/Development/MEANjs/TOK/nucleus/node_modules/rxjs/operators.js

In the file /tools/config/seed.config.ts there is a system_builder_config that provides path resolutions to systembuilder.js. For reasons unknown to me, packages spec for rxjs is not good enough.

However, if you include these:
'rxjs/operators': 'node_modules/rxjs/operators/index.js',
'rxjs/internal-compatibility': 'node_modules/rxjs/internal-compatibility/index.js',

...In the paths specification portion. This does allow systembuilder to find the referenced operators.