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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ivyenable compilation issues in angular 9 #38577
Comments
@gnbabu But you didn't mention what was upgraded and from which version. There is also the site https://update.angular.io where you can find out, what is necessary to do when upgrading from version X to Y. |
I have upgraded from angular 7.2.11 to 9.1.12 as per the angular documentation |
Please share the full output of In the current state this issue is missing vital information to be actionable. |
@gnbabu So check the whole process once more or migrate to the version 8.x first. You had to make some mistakes. |
Angular CLI: 9.1.11 Angular: 9.1.12 Package Version@angular-devkit/architect 0.901.11 |
I have updated version step by step as mentioned in the angular documentation ( starting from 7=>8=>9) |
So from the errors it's apparent that ngcc, the compatibility compiler, has not processed the libraries as needed for Ivy. This should happen automatically from within the CLI, and your CLI version should be sufficient to do that. So unfortunately, that doesn't yet get us closer to finding the cause. What commands are you running? |
|
AH! So that looks like you're not actually using the CLI then, in which case I understand why you're seeing those errors (although the above command does not show how the app is built, assuming that building does not occur from within that script (or does it?!)). Anyway, without the CLI you'd need to run ngcc manually. The simplest way would be to run it in a postinstall step in {
"scripts": {
"postinstall": "ngcc --properties es2015 browser module main --first-only --async"
}
} This is assuming that you're only targeting ES2015. Edit: Removed |
You are correct my application is hybrid solution which has angularJS+angular. We have used web-pack configuration for building the application below is the command
|
Actually if you are not using CLI then you probably don't want to use |
Thanks Pete, I didn't even think about that! |
its compiling but after running the application getting the empty page, in the console i am getting the below error
|
That looks like you did run it with |
|
You'd have to completely remove |
No luck still getting the same error |
Can you clarify how you actually build the application? What is the webpack configuration that you are using? Does the command you specified earlier:
Actually trigger |
We have hybrid solution (angulajs + angular 9) used web pack to build the application. My question is, Is it possible to enableIvy for hybrid solution? package.json for web pack versions
|
So I don't see anything in that config that could be the problem... But I just noticed this line in your error:
So the fact it says I suggest you try running ngcc again without the |
No luck still getting the same error |
I'm afraid that, at this stage, without a runnable reproduction that we can debug, there is not much more we can do to analyse this problem. |
Closing due to a lack of response. |
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. |
馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃
Please help us process issues more efficiently by filing an
issue using one of the following templates:
https://github.com/angular/angular/issues/new/choose
Thank you!
馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃
Getting the compilation errors after upgrading from angular 7 to angular 9 and enabled Ivy option.
When i set below configuration in ts-config its compiling
Angular CLI: 9.1.11
Node: 12.16.1
OS: win32 x64
Angular: 9.1.12
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router, upgrade
Ivy Workspace: Yes
Package Version
@angular-devkit/architect 0.901.11
@angular-devkit/build-angular 0.901.11
@angular-devkit/build-optimizer 0.901.11
@angular-devkit/build-webpack 0.901.11
@angular-devkit/core 9.1.11
@angular-devkit/schematics 9.1.11
@angular/cli 9.1.11
@angular/http 7.2.11
@ngtools/webpack 7.3.9
@schematics/angular 9.1.11
@schematics/update 0.901.11
rxjs 6.6.0
typescript 3.8.3
webpack 4.44.1
Failed to compile.
Any one help me to resolve this.
The text was updated successfully, but these errors were encountered: