-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
TypeError: defaultLoader is not a function #1493
Comments
This problem occurs in window10. Basically 100% recurring |
2.0.0-beta.12 This will automatically match up to 2.0.0-beta.22. I think it may be caused by this submission 803f6da |
@yyx990803 Can this problem be solved first? Otherwise, the current window users will not be able to use beta.22 after installing it. Only manually fix the version to beta.21 |
yes,me too. |
yes,me too.Please solve it. |
Having this problem too, in 2.0.0-beta.12; I can only run the project by switching to a .js config file and by replacing es6 import / export with common js syntax |
Can anyone help on debugging this and maybe even draft a PR for it? I'll look into this later. Thanks! |
Hmm, weird how the windows CI passed 🤔 |
I got the same error message on Windows 10 with vite 2.0, but with a slight change: my working directory is a symlink to a longer path. I was not sure if this is a supported use-case, so please ignore if not. Details: Vite Version:
Steps (happens in Windows Command Prompt (cmd.exe) and Windows Terminal (wt.exe):
It runs after I move into the actual directory:
|
I spent hours for this problem but resolved just rename |
I confirm it's because of symlink. I can now reliably reproduce it. A very common thing that people do is putting their code in somewhere like To fix, |
Describe the bug
yarn build
fails on the vue-ts templateReproduction
Create a new project with the vue-ts template
Install dependencies
Build
System Info
vite
version: 2.0.0-beta.12Logs (Optional if provided reproduction)
The text was updated successfully, but these errors were encountered: