-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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 cannot load vite.config.ts
with Node 17 and [email protected]
#13631
Comments
I guess this is related to nodejs/node#42860. We should have dropped Node.js 17 in Vite 3 (2022-07) or Vite 4. Or maybe we can already say we don't support Node.js 17 as we setup the release page. refs #13269 |
We could probably do a special node17 check for this, but not sure if it's worth handling it given it has EOL. |
I think if node 17 is important enough for someone we could accept a patch to support it until Vite 5. Not being able to load the config file in 17 right now feels too big a price to pay for what we gained by removing the temporal file. |
Sounds good to me (I like the approach "let's see if someone need this"). Although I'd show "Vite doesn't work with Node.js 17. Please update your Node.js version or reach out if you need Node.js 17 support." instead of this error. |
It is somehow reproduced on node 18 and 20 too on MacBook M1 MacOS 12, but on vite 4.3.x everything is fine |
It works!! |
@patak-dev Vite-plugin-ssr's CI doesn't use Node.js 17 anymore; it should be green again. |
Actually given we have support for node 16 and above, and the node fix is only applied to node 16.17 and 18.1, it would be better to support a fallback by default. We also used to be stricter when it comes to supported minors. Just need to make sure in Vite 5 we support 18.1 and above so we can remove the fallback. |
Closing as we reverted #13269 |
Describe the bug
When running
$ vite build
Vite throws this error:Reproduction
https://github.com/brillout/vite-reproduction-cannot-load-config
Steps to reproduce
See readme of reproduction.
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: