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
The package.json file mentions "module": "dist/index.mjs", but that file is not present in the svelte-actions package after installing it from npm, in node_modules/svelte-actions. I only find index.d.ts and index.js in the dist directory.
As a result, I get that error when doing import { clickOutside } from "svelte-actions": Error: Failed to resolve entry for package "svelte-actions". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "svelte-actions". The package may have incorrect main/module/exports specified in its package.json. when using SvelteKit, which uses Vite under the hood, which is ESM first.
The text was updated successfully, but these errors were encountered:
The
package.json
file mentions"module": "dist/index.mjs"
, but that file is not present in thesvelte-actions
package after installing it from npm, innode_modules/svelte-actions
. I only findindex.d.ts
andindex.js
in thedist
directory.As a result, I get that error when doing
import { clickOutside } from "svelte-actions"
:Error: Failed to resolve entry for package "svelte-actions". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "svelte-actions". The package may have incorrect main/module/exports specified in its package.json.
when using SvelteKit, which uses Vite under the hood, which is ESM first.The text was updated successfully, but these errors were encountered: