-
Notifications
You must be signed in to change notification settings - Fork 12k
Object spread results in 'Cannot read property 'kind' of undefined' error. #4600
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
I'm also encountering
|
I'm getting the same thing on a project that's using the @ngtools webpack loader. I can confirm that removing usage of the object spread operator fixes it. @angular/[email protected] I got it working by adding a few lines to
|
Also running into the same issue:
Any updates would be super appreciated as I don't think I can use an NPM hack right now with so many people working on our project. |
The loader throws an exception when an object spread is used. This fixes it. Fixes angular#4600
The loader throws an exception when an object spread is used. This fixes it. Fixes angular#4600
The loader throws an exception when an object spread is used. This fixes it. Fixes #4600
This might be related and possibly fixed with #4642 but.... I am getting a different error when I use the spread operator like so
I keep getting the flowing error
|
@carloscolombo are you sure you're using TS2.1? |
@jinder yeah, looks like it
any thoughts? |
@carloscolombo you can't rely on your globally installed TS version. You have to specifically override angular-cli's ts compiler. If I remember correctly, beta 28 uses 2.0. |
@jinder whoops! thanks! Now I am getting the same error the others were having... hooray! |
The loader throws an exception when an object spread is used. This fixes it. Fixes angular#4600
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. |
OS?
Mac OSX Sierra
Versions.
@angular/cli: 1.0.0-beta.31
node: 7.5.0
os: darwin x64
@angular/common: 4.0.0-beta.7
@angular/compiler: 4.0.0-beta.7
@angular/core: 4.0.0-beta.7
@angular/forms: 4.0.0-beta.7
@angular/http: 4.0.0-beta.7
@angular/platform-browser: 4.0.0-beta.7
@angular/platform-browser-dynamic: 4.0.0-beta.7
@angular/router: 4.0.0-beta.7
@angular/cli: 1.0.0-beta.31
@angular/compiler-cli: 4.0.0-beta.7
Repro steps.
Create a file using the reducer snippet below. Run ng build.
The log given by the failure.
Mention any other details that might be useful.
This only occurs when doing a normal build. If you use --aot, the error doesn't happen. Error only seems to occur when using object spread syntax in my reducer. If I comment out the spread syntax, it will build without error.
The text was updated successfully, but these errors were encountered: