Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Splitting `IndexedDB` table when migrating from `CRA` to `vite`

Aperta
#323 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
android, typescript, vite

Direzione di ricerca

L’issue non indica alcun file del repository, punto di ingresso o test. Inizia riproducendo la migrazione CRA-to-Vite su un dispositivo Android e ispeziona gli store IndexedDB prima e dopo l’upgrade; il lavoro è considerato completato quando viene identificato se vengono creati store separati e viene documentato o implementato un percorso di migrazione verificato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello, we encountered the problem when we tried to migrate our ionic v6.0 (CRA) project to ionic v7.0 (vite). Withing this migration we removed CRA specific files and added vite specific files, while not touching the code for working with @ionic/storage, the same drivers are used there (IndexedDB + localStorage), the name is the same.

After the migration, we started testing the update on an Android smartphone and found that changing the version meant that the app no ​​longer saw data from storage. However, if you reinstall the previous version, the data is restored.

This behavior is specific only to mobile devices, on the web under desktop or mobile the error is not reproduced.

I checked IndexedDB via the Android debugger in Chrome and saw that ``IndexedDB` and the data in the Storage section in DevTools are indeed erased, while the amount of memory in the Storage section of the device settings shows that the memory required for the application has not decreased.

It looks to me like after switching from CRA to vite we now have 2 IndexedDBs in the phone's memory, but for some reason CRA can only connect to its own, and vite can only connect to its own in the app itself.

Can you suggest any solutions to this problem?

Lingua principale
TypeScript
Stelle
456
Fork
97
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ionic-team/ionic-storage

Tutte le issue di ionic-team/ionic-storage

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.