-
-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Labels
bugSomething isn't workingSomething isn't workingtriageAwaiting triage by a project memberAwaiting triage by a project member
Description
Describe the bug
Error on use Typescript type.
All explications in "reproduction" field.
Using:
- SvelteKit
- Svelte 5
- Vite 6
- Selected Typescript in setup
Reproduction URL
Reproduction
How to reproduce the bug:
- Create a new Sveltekit project, with typescript
- Install deps and run dev
- in +page.svelte, create a typed var:
const test: string = "abc";
How to be sure that the bug comes from there:
4. Remove the type: const test = "abc";
5. The bug disappears
Logs
No response
System Info
at couldBeFixedByCssPreprocessor (file:///C:/Users/360matt/WebstormProjects/lemonade-loader/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@sveltejs/vite-plugin-svelte/src/utils/error.js:111:72)
at enhanceCompileError (file:///C:/Users/360matt/WebstormProjects/lemonade-loader/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@sveltejs/vite-plugin-svelte/src/utils/error.js:126:6)
at compileSvelte (file:///C:/Users/360matt/WebstormProjects/lemonade-loader/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@sveltejs/vite-plugin-svelte/src/utils/compile.js:148:4)
at async handleHotUpdate (file:///C:/Users/360matt/WebstormProjects/lemonade-loader/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@sveltejs/vite-plugin-svelte/src/handle-hot-update.js:33:17)
at async handleHMRUpdate (file:///C:/Users/360matt/WebstormProjects/lemonade-loader/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-yUJfKD1i.js:44193:33)
at async onHMRUpdate (file:///C:/Users/360matt/WebstormProjects/lemonade-loader/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-yUJfKD1i.js:43585:7)
at async FSWatcher.<anonymous> (file:///C:/Users/360matt/WebstormProjects/lemonade-loader/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-yUJfKD1i.js:43622:5andre-morise, MattPhantastic and skewballfox
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriageAwaiting triage by a project memberAwaiting triage by a project member