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
Hey guys, just wondering if anyone has an issue with importing .svelte file extensions from their node_modules.
I have a Sveltekit project with Turbo and Bun, and I haven't changed any config settings. Everytime I try to import a library using the .svelte file extension under node_modules I get an error stating .svelte is an unknown file extension type. Current use case is trying to use svelte-codemirror. Issue does not arise when just using SvelteKit and Vite without Turbo. Any support would be appreciated!
Error Log
web:dev: TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".svelte"for C:\Users\amorb\Documents\GitHub\sveltekit-mirror-test\node_modules\svelte-codemirror-editor\dist\CodeMirror.svelte
web:dev: at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:160:9)
web:dev: at defaultGetFormat (node:internal/modules/esm/get_format:203:36)
web:dev: at defaultLoad (node:internal/modules/esm/load:143:22)
web:dev: at async ModuleLoader.load (node:internal/modules/esm/loader:403:7)
web:dev: at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:285:45) {
web:dev: code: 'ERR_UNKNOWN_FILE_EXTENSION'
web:dev: }
Additional information
Project was initialised with official Turbo Sveltekit starter command (npx create-turbo@latest -e with-svelte).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Hey guys, just wondering if anyone has an issue with importing
.svelte
file extensions from theirnode_modules
.I have a Sveltekit project with Turbo and Bun, and I haven't changed any config settings. Everytime I try to import a library using the
.svelte
file extension undernode_modules
I get an error stating.svelte
is an unknown file extension type. Current use case is trying to usesvelte-codemirror
. Issue does not arise when just using SvelteKit and Vite without Turbo. Any support would be appreciated!Error Log
Additional information
Project was initialised with official Turbo Sveltekit starter command (
npx create-turbo@latest -e with-svelte
).Example
Minimal reproduction can be found here (https://github.com/amooo-ooo/sveltekit-mirror-test).
Beta Was this translation helpful? Give feedback.
All reactions