-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Could not resolve .js import from ts svelte component #323
Labels
bug
Something isn't working
Comments
shir0u
added
bug
Something isn't working
triage
Awaiting triage by a project member
labels
May 4, 2022
Was just looking at this yesterday: vitejs/vite#7998. Got a fix for Vue but will port the fix here too once that's merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When
type: module
is used in package.json, the specification says that any import should have an extension. Following convention, if we add .js import for a typescript file, it is not able to resolve.Reproduction
This works with a regular .ts file, but not a svelte file using ts context.
Logs
Errors: Could not resolve './some-typescript-file.js' from App.svelte
Severity
blocking all usage of vite-plugin-svelte
The text was updated successfully, but these errors were encountered: