Why might a localhost alias fail with vite & node version >16? #13469
Replies: 1 comment
-
Looks like adding |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been running a local dev environment using an
/etc/hosts
entry that pointsmydomain.local
to 127.0.0.1 (because of authentication domain requirements). It has been working fine up until now. Today I decided to try moving from node v16 to v20, and suddenly I can't access the locally running dev server this way. I just get "mydomain.local
refused to connect".After trying a few hours of debugging, I cannot find any reason this might be happening other than some combination of vite and node versions > 16. Everything works fine if I use create react app, any version of node. And vite works fine on node v16.15.0 as well. This is on Mac OS.
Beta Was this translation helpful? Give feedback.
All reactions