-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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: Cannot read property 'endsWith' of undefined gets thrown in windows when "npm init @vitejs/app" is invoked #2568
Comments
|
Same. |
Same here. |
kolorist assumes env variable is already defined before essentially doing undefined.endswith. It had this commited and released 3 hours ago (as 1.3.0 and create-app has dependency on "^1.2.9"): Which causes a runtime error when the module is required. edit: I just prepared a PR. |
Whoops, that's on me! Only tested the changes on MacOS + Linux, but not on Windows. Sorry for the trouble this has caused. Just merged the PR and published a new version with the fix. Thanks to @bjarkihall for submitting a fix 👍 |
Sorry but I seem to get "SyntaxError: Unexpected token '.'" at the same place now.. which is a bit odd:
Is optional chaining not supported or am I missing something obvious? |
Just booted up my windows machine and I can confirm that it works now, even when downgrading to Node 12. |
I can also confirm it runs smoothly now on windows regardless of the node version (12 and upwards). |
I assume this is fixed by kolorist 1.3.2? |
yup |
Describe the bug
TypeError is thrown on Windows 10 system shell
Reproduction
just run
npm init @vitejs/app
System Info
vite
version: not surenpm7.6.0
Logs (Optional if provided reproduction)
The text was updated successfully, but these errors were encountered: