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

Ionic/Angular13 with aot: true cause JIT compiler unavailable #92

Open
winnievips opened this issue Jun 1, 2022 · 2 comments
Open

Ionic/Angular13 with aot: true cause JIT compiler unavailable #92

winnievips opened this issue Jun 1, 2022 · 2 comments

Comments

@winnievips
Copy link

Ionic 6 when using configuration aot true, when build to App will show JIT unavailable.
During development configuration for aot false can works fine..Only when production it hit this issue.
Any ways to resolve it?
I tried import '@angular/compiler'; in main.ts
OR
in tsconfig.json
"angularCompilerOptions": {
"enableIvy": false, / true
"compilationMode": "partial"
}

Screenshot 2022-06-01 at 6 16 17 PM

Screenshot 2022-06-01 at 5 49 26 PM

@sinemsevilmis
Copy link

Hi @winnievips,

Default value of buildOptimizer is true. But this package is deprecated and should not be used.

Please follow the steps below:

  1. import '@angular/compiler' in main.ts.
    NOTE: import 'reflect-metadata' should be kept in first line.
  2. set "buildOptimizer" false in angular.json.

If this will not solve your issue, contact us here.

@winnievips
Copy link
Author

Hi @sinemsevilmis ,

every hms plugin is deprecated or just this cordova-plugin-hms-availability?
Any other upgraded package we could use in ionic/capacitor project? Because we would like to have buildOptimizer option in our project.

TQ.

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

2 participants