-
Notifications
You must be signed in to change notification settings - Fork 100
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
Update angular package to use Ivy #269
Conversation
Update to Angular 15 Replace TSLint with ESLint + Prettier Update dependencies
As a temporary workaround until a new release is made, you can copy this file into your project and replace the |
Hello, im highly interested in this PR to be merged, when can we expect to have a new version with this fix? |
Thanks for the PR. How does this impact people on older versions of Angular? I'm not up to speed on the latest module format. I'm assuming it'll require a major version release? |
Good question, I don't know actually, but I think it will not work with Angular <9 or anyone who has chosen to opt-out of Ivy. I think it's worth mentioning that with Angular 9 (first version with Ivy by default) being released in early 2020, it has been out of LTS for 1.5 years already, and view engine has been deprecated since v12 which is also out of LTS. |
Okay published |
If you test with https://github.com/ionic-team/ionifits by installing this version: You get build errors: |
Okay |
Hi, ./src/app/shared/services/persistent-storage.service.ts:2:0-49 - Error: Module not found: Error: Can't resolve '@ionic/storage-angular' in 'xxx/app/src/app/shared/services'
./src/main.ts:28:0-60 - Error: Module not found: Error: Can't resolve '@ionic/storage-angular' in 'xxx/app/src'
Error: src/app/shared/services/persistent-storage.service.ts:2:25 - error TS2307: Cannot find module '@ionic/storage-angular' or its corresponding type declarations.
2 import { Storage } from '@ionic/storage-angular';
~~~~~~~~~~~~~~~~~~~~~~~~
Error: src/main.ts:28:36 - error TS2307: Cannot find module '@ionic/storage-angular' or its corresponding type declarations.
28 import { IonicStorageModule } from '@ionic/storage-angular'; |
I tried to upgrade to What else do we need to do to release 4.0? cc @mlynch |
Hmm, I'll take a look today at what went wrong --- edit --- Okay so after a quick look at the changes I think what happened is that the new package format doesn't automatically re-exports TL;DR The fix is ...
export * from "@ionic/storage" --- edit 2 --- Actually hold on this is a different issue, I'll take a look once I'm home |
Any update on this? Is there any workaround for this? |
Okay I've fixed the package and republished it and can verify the dist files are correctly bundled, and I'm still getting this error now, so I'm going to revert this PR until we can figure out what's not working. I'm not experienced enough in Angular to do the work on this so if someone else was able to get this working end-to-end we can take another look at it, thanks. |
Fixes #249
Should fix #256, fix #251, fix #250