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
Had the following build error when using idb-keyval with sveltekit and adapter-cloudflare-worker.
(node:51281) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
> Cannot use import statement outside a module
/Users/holdph/personal/song-kit/node_modules/idb-keyval/dist/esm/index.js:1
import safariFix from 'safari-14-idb-fix';
^^^^^^
I added "type": "module", to the package.json of node_modules for both idb-keyval and safari-14-idb-fix and that allows me to build locally.
The text was updated successfully, but these errors were encountered:
Had the following build error when using
idb-keyval
withsveltekit
andadapter-cloudflare-worker
.I added
"type": "module",
to thepackage.json
ofnode_modules
for bothidb-keyval
andsafari-14-idb-fix
and that allows me to build locally.The text was updated successfully, but these errors were encountered: