-
Notifications
You must be signed in to change notification settings - Fork 413
Closed
Labels
area: command: devmedium prioritytype: bugcode to address defects in shipped codecode to address defects in shipped code
Description
Describe the bug
Similar to this: #2882 (comment)
Netlify Dev tries to start a server, it injects the environment variables, parses the configuration files and starts the local server of the framework, however it never starts the Netlify CLI's server.
Till now, the behaviour has been observed with Vite and Create React App (but more frameworks could be affected). This has been observed on MacOS 12. Other Operating Systems have not been checked.
This works with Node 14.17.5
, possibly with any other Node version than Node 17.
To Reproduce:
- Use Node 17 (17.0.1 at the time of writing).
- Try running
netlify dev
in a project (possibly in a Vite or CRA project) - See that the dev server never starts.
Configuration
System:
OS: macOS 12.0.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 891.31 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 17.0.1 - ~/.nvm/versions/node/v17.0.1/bin/node
npm: 8.1.1 - ~/.nvm/versions/node/v17.0.1/bin/npm
Expected behaviour
The Netlify Dev server should start.
CLI Output
Vite:
◈ Netlify Dev ◈
◈ Ignored general context env var: LANG (defined in process)
◈ Starting Netlify Dev with vite
> dev
> vite
vite v2.4.1 dev server running at:
> Local: http://localhost:3000/
> Network: use `--host` to expose
ready in 217ms.
Additional context
Marked low-priority
as there's a workaround to use a different Node version.
pypae, ntwi, GitHub30 and tkrunning
Metadata
Metadata
Assignees
Labels
area: command: devmedium prioritytype: bugcode to address defects in shipped codecode to address defects in shipped code