-
Notifications
You must be signed in to change notification settings - Fork 11
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
Vite is unable to resolve the specified import path #511
Comments
Oh, seems to be Windows related. can you try to replace the line 139 in zudoku/packages/zudoku/src/vite/plugin-api.ts Lines 138 to 140 in cdcc458
With this? `"${version}": () => import("${path?.replace("\\", "/")}")`, Vite should be able to use POSIX style imports. Either that or replace it with a double backslash. I think the problem is that this code is generated and used as-is, and the backslashes just escape the following char instead of being taken literally. |
@dan-lee Nice, but I'm not developing with locally, I got issue when I created a fresh zudoku app. Steps:pnpm create zudoku-app@latest` then pnpm run dev OS: Windows 11 Also, how you guys make changes and test it locally for zudoku? |
Huh ok that's not good. Thanks for the report. I usually just run |
@dan-lee I think this should be `"${version}": () => import("${filePath?.replace(/\\/g, "/")}")`, and it's fixed the problem, Thanks for the suggetion opening a PR. |
I have created an example project and i try to run
dev
server then i got the following error@dan-lee @ntotten @AdrianMachado
The text was updated successfully, but these errors were encountered: