-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Bug: Angular 4 spa + external lib using other node_modules libs on Windows #246
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
Comments
Is it the same bug? |
Could you provide a simplified reproduction in a Github repo so we could test this? |
Here is repro: Error only on Windows OS. My version is Win 8.1 Error text in browser after "ng serve --app=backoffice": |
Could you try it with the latest version of Nx? |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Then using relative "baseUrl": "." in tsconfig.json, somethere in internals generated webpack paths contains sometimes capital drive letter (i.e. G:\mc), sometimes not (i.e. g:\mc).
In Dev mode (ng serve --app=...) this caused error in browser:
TypeError: WEBPACK_IMPORTED_MODULE_1__angular_core.Version is not a constructor
But "ng build --prod --app=..." works fine.
Issue solved by using absolute paths (i.e. "baseUrl": "G:\mc") in tsconfig.json
PS: May be it is angular/cli or webpack bug.
The text was updated successfully, but these errors were encountered: