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
Hi, just FYI, this is package is failing with SvelteKit due to the lack of ESM export:
/Users/ben/dev/my-project/node_modules/svelte-gh-hotkey/index.js:1
import {
^^^^^^
SyntaxError: Cannot use import statement outside a module
at wrapSafe (internal/modules/cjs/loader.js:979:16)
at Module._compile (internal/modules/cjs/loader.js:1027:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at ModuleWrap.<anonymous> (internal/modules/esm/translators.js:199:29)
at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
at async Loader.import (internal/modules/esm/loader.js:166:24)
at async prerender (file:///Users/ben/dev/my-project/node_modules/@sveltejs/kit/dist/chunks/index5.js:79:14)
at async Object.prerender (file:///Users/ben/dev/my-project/node_modules/@sveltejs/kit/dist/chunks/index5.js:296:5)
It may be required to explicitly specify export paths in package.json due to this issue: sveltejs/kit#1498
The text was updated successfully, but these errors were encountered:
Hi @benwoodward, thanks for reporting.
Just tried by adding it to a new svelte-kit app, but couldn't reproduce, neither in dev nor prod build. But I've pushed a new version that adds "type": "module" to package.json, which should help to avoid it being loaded with commonjs.
Hi, just FYI, this is package is failing with SvelteKit due to the lack of ESM export:
It may be required to explicitly specify export paths in
package.json
due to this issue: sveltejs/kit#1498The text was updated successfully, but these errors were encountered: