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
import{vitePreprocess}from'@sveltejs/vite-plugin-svelte';exportdefault{// Consult https://svelte.dev/docs#compile-time-svelte-preprocess// for more information about preprocessorspreprocess: [vitePreprocess({script: true})],compilerOptions: {// accessors: true,customElement: true}};
The svelte/elements is just a type declaration module, so when compiled, it converts the import to import "svelte/elements", but since there's no actual code to import, an error happens. Related #15236
The svelte/elements is just a type declaration module, so when compiled, it converts the import to import "svelte/elements", but since there's no actual code to import, an error happens. Related #15236
Describe the bug
Button.svelte:
svelte.config.js
vite.config.ts
then execute
npm run build
will result in an error: [commonjs--resolver] No known conditions for "./elements" specifier in "svelte" package。Reproduction
git clone https://github.com/tinyflow-ai/tinyflow
pnpm install
pnpm run build
Logs
System Info
Severity
blocking all usage of svelte
The text was updated successfully, but these errors were encountered: