-
Notifications
You must be signed in to change notification settings - Fork 147
Closed
Description
Describe the bug
when typechecking svelte.config.js with moduleResolution set to nodenext, the following compile errors occur:
node_modules/svelte-preprocess/dist/types/index.d.ts:2:106 - error TS2307: Cannot find module 'svelte/types/compiler/preprocess' or its corresponding type declarations.
2 import type { Processed as SvelteProcessed, Preprocessor as SveltePreprocessor, PreprocessorGroup } from 'svelte/types/compiler/preprocess';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/svelte-preprocess/dist/types/index.d.ts:4:35 - error TS2307: Cannot find module 'svelte/types/compiler/preprocess' or its corresponding type declarations.
4 export { PreprocessorGroup } from 'svelte/types/compiler/preprocess';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
svelte.config.js:12:14 - error TS2349: This expression is not callable.
Type 'typeof import("/home/projects/sveltejs-kit-template-default-b9wpnr/node_modules/svelte-preprocess/dist/index")' has no call signatures.
12 preprocess: preprocess()
~~~~~~~~~~
Logs
Please include browser console and server logs around the time this bug occurred.
To Reproduce
- go to https://stackblitz.com/edit/sveltejs-kit-template-default-b9wpnr?file=svelte.config.js
- wait for the
devnpm script to finish - check the output
Expected behavior
A clear and concise description of what you expected to happen.
Information about your project:
svelte-preprocessversion: 5.0.3
Additional context
other related issues:
DetachHead
Metadata
Metadata
Assignees
Labels
No labels