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
Using esbuild and svelte v4, I was getting this message
...
✘ [ERROR] Could not resolve "svelte/internal/disclose-version"
../../../node_modules/.pnpm/[email protected]/node_modules/svelte-feather-icons/src/icons/SquareIcon.svelte:14:7:
14 │ import "svelte/internal/disclose-version";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The path "./internal/disclose-version" is not exported by package "svelte":
../../../node_modules/.pnpm/[email protected]/node_modules/svelte/package.json:23:13:
23 │ "exports": {
╵ ^
You can mark the path "svelte/internal/disclose-version" as external to exclude it from the
bundle, which will remove this error.
✘ [ERROR] Could not resolve "svelte/internal/disclose-version"
../../../node_modules/.pnpm/[email protected]/node_modules/svelte-feather-icons/src/icons/DownloadCloudIcon.svelte:14:7:
14 │ import "svelte/internal/disclose-version";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The path "./internal/disclose-version" is not exported by package "svelte":
../../../node_modules/.pnpm/[email protected]/node_modules/svelte/package.json:23:13:
23 │ "exports": {
╵ ^
You can mark the path "svelte/internal/disclose-version" as external to exclude it from the
bundle, which will remove this error.
Build failed with 287 errors:
../../../node_modules/.pnpm/[email protected]/node_modules/svelte-feather-icons/src/icons/ActivityIcon.svelte:14:7: ERROR: Could not resolve "svelte/internal/disclose-version"
../../../node_modules/.pnpm/[email protected]/node_modules/svelte-feather-icons/src/icons/AirplayIcon.svelte:14:7: ERROR: Could not resolve "svelte/internal/disclose-version"
../../../node_modules/.pnpm/[email protected]/node_modules/svelte-feather-icons/src/icons/AlertCircleIcon.svelte:14:7: ERROR: Could not resolve "svelte/internal/disclose-version"
../../../node_modules/.pnpm/[email protected]/node_modules/svelte-feather-icons/src/icons/AlertOctagonIcon.svelte:14:7: ERROR: Could not resolve "svelte/internal/disclose-version"
../../../node_modules/.pnpm/[email protected]/node_modules/svelte-feather-icons/src/icons/AlertTriangleIcon.svelte:14:7: ERROR: Could not resolve "svelte/internal/disclose-version"
...
And I was able to work around it by adding this to my package.json (I'm using pnpm)
Using esbuild and svelte v4, I was getting this message
And I was able to work around it by adding this to my package.json (I'm using pnpm)
I'm wondering if svelte should be a peer dependency.
There's a decent chance I'm doing something wrong. I don't understand why
svelte
would be getting imported in the first place.Works fine in the svelte playground
The text was updated successfully, but these errors were encountered: