-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Failed to resolve import with unicode path in typescript #2083
Comments
Looks like the path is broken inside esbuild.
Code:
Result:
|
Update - it works good if I define utf8 charset in esbuild options. Maybe this should be the default? |
Looks like the problem is that Vite is using |
It should now be possible to fix this in Vite. The latest version of the |
Describe the bug
If I have an import from a path that contains unicode symbols (for example, cyrillic) in typescript files, that leads to error
Internal server error: Failed to resolve import
. If I do the same thing inside javascript file, it works correctly.Reproduction
https://github.com/Djaler/vite-resolve-import-unicode-typescript-error
yarn dev
, open browserindex.html
from./src/ts
to./src/js
System Info
vite
version: 2.0.1Logs
Open me
The text was updated successfully, but these errors were encountered: