-
Notifications
You must be signed in to change notification settings - Fork 26.2k
"Cannot convert undefined or null to object" when ng serve with fesm15 files #15325
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
JIT is broken with ES2015 because JIT produces ES5 and therefore fails when using inheritance (see #14816). However, we shouldn't throw this error. |
This is because in native ES6, arrow functions don't have a
But if this error would not throw, we would see the error described in #14816. Closing in favor of the tracking bug #15127 |
|
thanks @jusefb |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a ... (check one with "x")
Current behavior
Exception thrown in the browser (during metadata collection?) in JIT mode:
Expected behavior
No error
Minimal reproduction of the problem with instructions
ng new --ng4 test-app
vi node_modules/\@angular/cli//models/webpack-configs/common.js
andmainFields: ["es2015", "module", "main"]
toresolve: { ... }
block4.0.0-rc.5
The text was updated successfully, but these errors were encountered: