You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(sorry, I'm not extremely familiar with typescript, so I may write something stupid here… but in any case it might be worth adding more details in the documentation if I'm doing something wrong. See also my question here)
I can't find how to import the type ExportProgress from dexie-export-import:
If I do:
import "dexie-export-import";
function progressCallback ({totalRows, completedRows, ...restProps} : ExportProgress) {
console.log(`Progress: ${completedRows} of ${totalRows} rows completed`);
return true;
}
then I get an error:
Error: Cannot find name 'ExportProgress'.
If I do:
import type { ExportProgress } from "dexie-export-import";
or
import type { ExportProgress } from "dexie-export-import";
then I get an error Error: Module '"dexie-export-import"' has no exported member 'ExportProgress'. Did you mean to use 'import ExportProgress from "dexie-export-import"' instead? (ts).
Any idea what I'm missing? I'm using sveltekit + vite, and I tried to change in tsconfig.json the {"compilerOptions": {"moduleResolution": "bundler"}} into:
(sorry, I'm not extremely familiar with typescript, so I may write something stupid here… but in any case it might be worth adding more details in the documentation if I'm doing something wrong. See also my question here)
I can't find how to import the type
ExportProgress
from dexie-export-import:If I do:
then I get an error:
If I do:
or
then I get an error
Error: Module '"dexie-export-import"' has no exported member 'ExportProgress'. Did you mean to use 'import ExportProgress from "dexie-export-import"' instead? (ts)
.The library exports it here via:
Any idea what I'm missing? I'm using sveltekit + vite, and I tried to change in
tsconfig.json
the{"compilerOptions": {"moduleResolution": "bundler"}}
into:without success
The text was updated successfully, but these errors were encountered: