New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't resolve 'stream' #326
Comments
What version of node? |
tried with node v10.4.1 and v.11.6.0 |
This is apparently a problem with angular's build system: DevExpress/devextreme-angular#776 Very odd I might add. I would like to find a solution, besides the existing "install an old package" one that seems to be the accepted norm. |
Yeah saw that too.
That is what I get when I change
|
Ran into the same issue, got it temporarily fixed by adding the following to my index.html :
|
Yep, that fixes the error.
It should work then. |
reproduced, I'll try and have a work around shortly. |
Add this to tsconfig.json (found Stuk/jszip#524): {
"compilerOptions": {
"paths": {
"stream": ["./node_modules/readable-stream/readable.js"]
}
}
}
Add this to polyfill.ts (found partly algolia/algoliasearch-client-javascript#691, and above, ty @jordyvanderhaegen): const w = (window as any);
w.process = {
env: { DEBUG: undefined },
};
w.Buffer = [];
w.process = { env: { DEBUG: undefined }, version: [] };
w.global = w; I installed this locally and was able to have the app simply work. |
This will resolve it "https://stackoverflow.com/a/73103563/12002600" |
What is wrong?
Installing brain.js via npm in an angular framework doesn't work.
Error:
Where does it happen?
When running
npm start
How do we replicate the issue?
npm install brain.js
npm start
How important is this (1-5)?
5
Expected behavior (i.e. solution)
Brain.js shouldn't throw this error
Other Comments
The text was updated successfully, but these errors were encountered: