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

The 1.1.1 version break production builds #153

Closed
vvemuru opened this issue Oct 31, 2019 · 10 comments
Closed

The 1.1.1 version break production builds #153

vvemuru opened this issue Oct 31, 2019 · 10 comments
Assignees
Labels
Milestone

Comments

@vvemuru
Copy link

vvemuru commented Oct 31, 2019

Hello,

The latest release this morning broke the prod builds in Angular. We are on Angular 7.2.15 and kept running into the following error:

ERROR in ./node_modules/@ckeditor/ckeditor5-angular/fesm5/ckeditor-ckeditor5-angular.js
Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
TypeError: Cannot read property 'kind' of undefined
at isAngularDecoratorMetadataExpression (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\src\transforms\scrub-file.js:265:35)
at checkNodeForDecorators (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\src\transforms\scrub-file.js:77:21)
at visitNodes (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16144:30)
at Object.forEachChild (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16370:24)
at checkNodeForDecorators (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\src\transforms\scrub-file.js:68:31)
at visitNode (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16135:24)
at Object.forEachChild (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16265:21)
at checkNodeForDecorators (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\src\transforms\scrub-file.js:68:31)
at visitNode (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16135:24)
at Object.forEachChild (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16322:24)
at checkNodeForDecorators (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\src\transforms\scrub-file.js:68:31)
at visitNode (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16135:24)
at Object.forEachChild (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16333:24)
at checkNodeForDecorators (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\src\transforms\scrub-file.js:68:31)
at visitNode (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16135:24)
at Object.forEachChild (C:\angular\angular-apps\standards-works\branches\v1_0_DEV\node_modules@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:16229:21)

@juhil1
Copy link

juhil1 commented Nov 1, 2019

Hello,

I am facing the same issue.

I am on Angular 5.0.0

@etonyali
Copy link

etonyali commented Nov 1, 2019

This is pretty urgent

@slampunk
Copy link

slampunk commented Nov 2, 2019

Ran into the same issue during a production deployment. Downgrading to 1.1.0 fixed my issue.

I'm on Angular 7.2.

package.json lists Angular 8 as a dependency, so if there's am upstream change from Angular 7 -> 8 that triggers this specific issue, ckeditor5-angular's README.md for 1.1.1 should be updated to note said change.

@kennethross
Copy link

Im on Angular 8.0. Im having the same error aswell when deploying to production.

@kennethross
Copy link

Ran into the same issue during a production deployment. Downgrading to 1.1.0 fixed my issue.

I'm on Angular 7.2.

package.json lists Angular 8 as a dependency, so if there's am upstream change from Angular 7 -> 8 that triggers this specific issue, ckeditor5-angular's README.md for 1.1.1 should be updated to note said change.

still run the same error when downgrade to 1.1.0

@ma2ciek
Copy link
Contributor

ma2ciek commented Nov 4, 2019

Hi,

Sorry for the issue, I'll try to fix it as soon as possible.

package.json lists Angular 8 as a dependency,

Yep, but that's an internal (dev) dependency only of this package, we release the package only with the peerDependencies pointing the Angular.

The issue was probably caused by upgrading the @angular-devkit, which seems pretty weird to me, as upgrading it caused the BC for older versions. I'll check it to be 100% sure.

@ma2ciek
Copy link
Contributor

ma2ciek commented Nov 4, 2019

still run the same error when downgrade to 1.1.0

Did you use the `"1.1.0" to point the exact version and not the "^1.1.0"?

@ma2ciek
Copy link
Contributor

ma2ciek commented Nov 4, 2019

Ok, I've found out that the ng-packagr@5 incorrectly compiles the library for the ng build --prod 😞It seems that the #96 should have higher priority.

@ma2ciek ma2ciek pinned this issue Nov 4, 2019
ma2ciek added a commit that referenced this issue Nov 4, 2019
Fix: Downgraded the `ng-packagr` package to fix the `ng build --prod` (#153).
@ma2ciek
Copy link
Contributor

ma2ciek commented Nov 4, 2019

I've just released the https://github.com/ckeditor/ckeditor5-angular/releases/tag/v1.1.2 version that should fix this problem.

@ma2ciek ma2ciek added this to the iteration 28 milestone Nov 4, 2019
@ma2ciek
Copy link
Contributor

ma2ciek commented Nov 4, 2019

It's closed by 55788f5.

Please, update your @ckeditor/ckeditor5-angular package to the latest version.

@ma2ciek ma2ciek closed this as completed Nov 4, 2019
@ma2ciek ma2ciek self-assigned this Nov 4, 2019
@ma2ciek ma2ciek changed the title New release (1.1.1) breaking prod build The 1.1.1 version breaks production build Nov 4, 2019
@ma2ciek ma2ciek changed the title The 1.1.1 version breaks production build The 1.1.1 version break production builds Nov 4, 2019
@ma2ciek ma2ciek unpinned this issue Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants