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
Angular 16 support #293
Comments
For now you can copy this file https://github.com/ionic-team/ionic-storage/blob/main/angular/src/index.ts |
@danielehrhardt copy the file to what location/folder in the project and how to make use of it? |
Hitting the same issue, seems like v4.0.0-next.1 would solve it, but after upgrading and looking through the
|
Hello everyone, thanks for reporting this issue. I have confirmed that the changes on this tag: v4.0.0-next.1 address the problems when upgrading applications to Angular 16. It looks like our release process may have published from the |
Can someone try installing npm install @ionic/storage-angular@4.0.0-next.4 Thanks! |
Thanks, compiles now in a library project, so package was published correctly. Not sure yet wrt OP's issue, will try that later today... EDIT: Thanks. |
@godenji can confirm, Installing 4.0.0-next.4 fixed the issue. Thank you for the fast resolution. |
Awesome, thank you both! I need to meet/discuss with a few team members to coordinate an official 4.0.0 release. I'll leave this issue open in the interim. |
I guess 4.0.0. will also resolve #284. |
Worked for me too! |
4.0.0-next.4 works for me too |
Version 4.0.0-next.4 works for me too 🎉 |
Hello everyone 👋 I've release v4.0.0 which should resolve the pending issues. Please open a new issue if you experience any issues with the new release. Thanks! |
Thanks to everyone who helped fix this! |
For Angular 16 there is no app module so where we can add IonicStorageModule.forRoot() ? |
You've set up ionic with standalone components. So I think you can put it in the imports array in your app.component |
I am having issue still while upgrading angular 15 to 16 version. |
I am currently encountering challenges in integrating Ionic Storage within my Ionic 8 (Angular 17) application. I have adhered to the official documentation guidelines for implementing Ionic Storage within an independent service. The following is the content of the storage.service.js file:
I am utilizing this service within another service for authentication-related purposes. The following is the content of the auth.service.js file:
Finally I am integrating this service within a page. The following is the content of the login.page.ts file:
I am encountering the following error in my browser console: |
@tirthyakamaldasgupta private _storage: Storage | null = null; try removing this and directly use the constructor parameter storage. |
After Angular upgrading from 15 to 16.0.0 I'm getting the following error on app serve:
error NG6002: 'IonicStorageModule' does not appear to be an NgModule class. ... node_modules/@ionic/storage-angular/index.d.ts:6:22 [ng] 6 export declare class IonicStorageModule { [ng] ~~~~~~~~~~~~~~~~~~ [ng] This likely means that the library (@ionic/storage-angular) which declares IonicStorageModule is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy
"@ionic/angular": "^7.0.5",
"@ionic/storage-angular": "^3.0.6",
"@capacitor/app": "5.0.0",
"@capacitor/browser": "5.0.0",
"@angular/common": "^16.0.0",
"@angular/core": "^16.0.0",
The text was updated successfully, but these errors were encountered: