Skip to content
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

Angular 5.0.0.rc6 #33

Closed
MADzO opened this issue Oct 26, 2017 · 7 comments
Closed

Angular 5.0.0.rc6 #33

MADzO opened this issue Oct 26, 2017 · 7 comments

Comments

@MADzO
Copy link

MADzO commented Oct 26, 2017

I am getting this error with this version of angular:

webpack-chain-module-resolution-host-adapter.js:7
extendStatics(d, b);
TypeError: Object prototype may only be an Object or null: undefined
at setPrototypeOf ()
at __extends (..\node_modules\ngc-webpack\src\webpack-chain-module-resolution-host-adapter.js:7:9)
at ..\node_modules\src\webpack-chain-module-resolution-host-adapter.ts:7:62
at Object. (..\node_modules\src\webpack-chain-module-resolution-host-adapter.ts:7:1)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object. (..\node_modules\src\main.ts:14:1)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object. (C..\node_modules\src\plugin.ts:3:1)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)

@bartholomej
Copy link

Same here.
Actually this error starts from Angular 5.0.0-rc.4 (changelog). Versions before were OK.
Perhaps this information will help you @shlomiassaf ...

@giampierobono
Copy link

Same here with rc.8 :(

@bartholomej I tried with rc.3 and I got this error:
TypeError: compiler_cli_1.NgcCliOptions is not a constructor

Do you have a workaround for this? Thanks :)

@shlomiassaf
Copy link
Owner

This is due to a breaking change in angular 5.x.x

I didn't rush into it because it's still RC but it looks like it's coming fast so i'll review the issue and see what can be done.

@giampierobono
Copy link

@shlomiassaf Sure no problem! You are doing a great job and your webpack plugins are incredibly amazing :)

I was just wondering if @bartholomej managed to make it work with some version of Angular 5. I am struggling with the AOT build for Angular 5

@bartholomej
Copy link

Ok, to be clear - this issue was originally about JIT error message ;)

So, you can use ngc-webpack up to rc.3 with JIT compilation (usually in dev mode) but with AOT compilation it doesn't work at all for any Angular 5 version, as you said @giampierobono

@pdenomme
Copy link

pdenomme commented Nov 1, 2017

how do you get it working with rc.3? I'm still getting build errors with it.

@shlomiassaf
Copy link
Owner

The discussion for this topic is in #32, please read this comment and help me by providing input.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants