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
I don't seem to be able to import from zarr in TypeScript without getting this error:
Could not find a declaration file for module 'zarr'. '/project/node_modules/zarr/zarr.mjs' implicitly has an 'any' type.
There are types at '/project/node_modules/zarr/types/zarr.d.ts', but this result could not be resolved when respecting package.json "exports". The 'zarr' library may need to update its package.json or typings.
This is with freshly created npm create vite@latest - I tried a couple of permutations of settings, nothing that made a difference. I also tried importing from 'zarr/core' - again, no different.
The text was updated successfully, but these errors were encountered:
The issue is with "moduleResolution": "bundler" in tsconfig.json (which is the default with npm create vite@latest as of this writing). Changing to "node" works.
Getting the same error. Also changing to node seems to work. Maybe it would be a good idea to fix this issue directly in Zarr.js, instead of changing local configs?
I don't seem to be able to import from zarr in TypeScript without getting this error:
This is with freshly created
npm create vite@latest
- I tried a couple of permutations of settings, nothing that made a difference. I also tried importing from'zarr/core'
- again, no different.The text was updated successfully, but these errors were encountered: