sveltejs / svelte-preprocess

A ✨ magical ✨ Svelte preprocessor with sensible defaults and support for: PostCSS, SCSS, Less, Stylus, Coffeescript, TypeScript, Pug and much more.
MIT License
1.73k stars 147 forks source link

Doesn't work with fresh typescript #590

Closed Lancer11211 closed 1 year ago

Lancer11211 commented 1 year ago
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: _
npm ERR! Found: typescript@5.0.3
npm ERR! node_modules/typescript
npm ERR!   dev typescript@"^5.0.3" from the root project
npm ERR!   peer typescript@">=2.7" from ts-node@10.9.1
npm ERR!   node_modules/ts-node
npm ERR!     peerOptional ts-node@">=9.0.0" from postcss-load-config@4.0.1
npm ERR!     node_modules/postcss-load-config
npm ERR!       peerOptional postcss-load-config@"^2.1.0 || ^3.0.0 || ^4.0.0" from svelte-preprocess@4.10.7
npm ERR!       node_modules/svelte-preprocess
npm ERR!         dev svelte-preprocess@"^4.10.7" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional typescript@"^3.9.5 || ^4.0.0" from svelte-preprocess@4.10.7
npm ERR! node_modules/svelte-preprocess
npm ERR!   dev svelte-preprocess@"^4.10.7" from the root project
Conduitry commented 1 year ago

4.10.7 is not the latest version. https://github.com/sveltejs/svelte-preprocess/blob/main/CHANGELOG.md You need a later version to support TypeScript 5.