3 ms·
Beware that new @angular/cli@6.0.0 doesn't support universal node packages that are using fs/net/stream depending on the environment (e.g. using fs.readFile()
by coolspot 9y ago
Beware that new @angular/cli@6.0.0 doesn't support universal node packages that are using fs/net/stream depending on the environment
(e.g. using fs.readFile() when running in Node, while using window.fetch() when running in a browser.)
It seems that Angular team made a decision to not have out-of-the-box support for projects using such packages even in the future [1].
[1] https://github.com/angular/angular-cli/issues/9827#issuecomment-369578814 https://github.com/angular/angular-cli/issues/9827#issuecomm...
- Yuioup 9y agoMakes perfect sense to me.
- coolspot 9y agoIt may sound logical, but unfortunately breaks a lot of existing angular projects and there is no kosher way to configure it to work. For example both Rust’s stdweb and emscripten are detecting node/browser to load wasm file by appropriate method, they will not work in angular 6 project.