I'm submitting a ... (check one with "x")
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
Exception thrown in the browser (during metadata collection?) in JIT mode:
Unhandled Promise rejection: Cannot convert undefined or null to object ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Cannot convert undefined or null to object
at Function.getPrototypeOf (<anonymous>)
at getParentCtor (reflection_capabilities.ts:324)
at ReflectionCapabilities.parameters (reflection_capabilities.ts:115)
at Reflector.parameters (reflector.ts:42)
at CompileMetadataResolver._getDependenciesMetadata (metadata_resolver.js:794)
at CompileMetadataResolver._getFactoryMetadata (metadata_resolver.js:729)
at CompileMetadataResolver.getProviderMetadata (metadata_resolver.js:1001)
at JitCompiler._compileModule (compiler.js:172)
at createResult (compiler.js:116)
at ZoneDelegate.invoke (zone.js:334)
at Zone.run (zone.js:126)
at zone.js:713
at ZoneDelegate.invokeTask (zone.js:367)
at Zone.runTask (zone.js:166)
at drainMicroTaskQueue (zone.js:546) TypeError: Cannot convert undefined or null to object
at Function.getPrototypeOf (<anonymous>)
at getParentCtor (http://localhost:4200/vendor.bundle.js:2414:49)
at ReflectionCapabilities.parameters (http://localhost:4200/vendor.bundle.js:2234:45)
at Reflector.parameters (http://localhost:4200/vendor.bundle.js:2496:44)
at CompileMetadataResolver._getDependenciesMetadata (http://localhost:4200/vendor.bundle.js:40117:73)
at CompileMetadataResolver._getFactoryMetadata (http://localhost:4200/vendor.bundle.js:40056:51)
at CompileMetadataResolver.getProviderMetadata (http://localhost:4200/vendor.bundle.js:40324:43)
at JitCompiler._compileModule (http://localhost:4200/vendor.bundle.js:50248:77)
at createResult (http://localhost:4200/vendor.bundle.js:50192:25)
at ZoneDelegate.invoke (http://localhost:4200/polyfills.bundle.js:2970:26)
at Zone.run (http://localhost:4200/polyfills.bundle.js:2762:43)
at http://localhost:4200/polyfills.bundle.js:3349:57
at ZoneDelegate.invokeTask (http://localhost:4200/polyfills.bundle.js:3003:31)
at Zone.runTask (http://localhost:4200/polyfills.bundle.js:2802:47)
at drainMicroTaskQueue (http://localhost:4200/polyfills.bundle.js:3182:35)
Expected behavior
No error
Minimal reproduction of the problem with instructions
ng new --ng4 test-app
- edit
vi node_modules/\@angular/cli//models/webpack-configs/common.js and mainFields: ["es2015", "module", "main"] to resolve: { ... } block
- ng serve
- open http://localhost:4200 and check error in console
- Angular version:
4.0.0-rc.5
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-appvi node_modules/\@angular/cli//models/webpack-configs/common.jsandmainFields: ["es2015", "module", "main"]toresolve: { ... }block4.0.0-rc.5