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
The text was updated successfully, but these errors were encountered:
MarArMar
changed the title
Sveltekit in a Turborepo Monorepo : can import JS files but not TS files
Sveltekit in a Turborepo Monorepo without ESBuild : can import JS files but not TS files
Nov 22, 2023
Describe the bug
In this monorepo (https://github.com/MarArMar/TurboSvelteKitTypia), within these Sveltekit projects :
If I remove TS syntax from the TS file it works again. It seems the file is imported as JS
The file that loads other files is TurboSvelteKitTypia\apps\SvelteKitTS\src\routes+page.svelte
I have no idea if this is a Sveltekit issue specifically or not
Tried :
rollup-plugin-typescript2
plugin before thesveltekit
plugin in thevite.config.ts
, it didn't work.ts
at the end of the import, no effect.ts
at the end of the import, no effect (vite.config.ts
can't import untranspiled ts files from other packages in the same monorepo vitejs/vite#5370 (comment))sourceMap: false,
in therollup-plugin-typescript2
plugin config, no effect (intsconfig.json
it does suppress a warning)allowImportingTsExtensions: true
in therollup-plugin-typescript2
plugin config & tsconfig, no effect (Can't make it work with Vite/Svelte samchon/typia#812 (comment))Tried solutions proposed in :
vite.config.ts
can't import untranspiled ts files from other packages in the same monorepo vitejs/vite#5370 (comment)Reproduction
Reproduction repo : https://github.com/MarArMar/TurboSvelteKitTypia
Setup
Sveltekit with Js : working test
Dev
Sveltekit with Ts : not working example
Dev
Logs
Parse failure: Unexpected token (3:26) At file: /@fs/TurboSvelteKitTypia/packages/common/log.ts Contents of line 3: export const messageLoaded: string =
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: