Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SvelteKit: Node build fails with "Unknown file extension ".svelte"" #43

Closed
erveloso opened this issue Apr 15, 2022 · 2 comments
Closed

Comments

@erveloso
Copy link

Followed step by step the docs for the SvelteKit installation (with typescript), Tailwind and Konsta 0.8.0. While running the application or building it, I've got this error:

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".svelte" for C:\Users\Me\Documents\Kit\node_modules\konsta\svelte\components\App.svelte
at new NodeError (node:internal/errors:371:5)
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:87:11)
at defaultGetFormat (node:internal/modules/esm/get_format:102:38)
at defaultLoad (node:internal/modules/esm/load:21:14)
at ESMLoader.load (node:internal/modules/esm/loader:359:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:280:58)
at new ModuleJob (node:internal/modules/esm/module_job:66:26)
at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:297:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:261:34)
at async ModuleWrap. (node:internal/modules/esm/module_job:81:21)

I was able to workaround the issue by applying the following parameter to konsta/package.json

"svelte": "./svelte/konsta-svelte.js"

@murunwas
Copy link

I'm also getting the same error

image

@nolimits4web
Copy link
Member

fixed on 0.8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants