Skip to content
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

Dev commands not working when vite is installed #7156

Open
ECorreia45 opened this issue Mar 30, 2025 · 0 comments
Open

Dev commands not working when vite is installed #7156

ECorreia45 opened this issue Mar 30, 2025 · 0 comments
Labels
type: bug code to address defects in shipped code

Comments

@ECorreia45
Copy link

Describe the bug

I am seeing SyntaxError: of many types when running netlify dev.

you can clear all the scripts and just for the fact the vite is a dependency, you can't run the netlify command.

If i remove vite from devDependencies, the command works fine

Steps to reproduce

1 - create a basic vite project choosing vanillasJs and Typescript
2 - run netlify dev

Configuration

i did not specify any custom configurations. I just netlify init and picked to used existing netlify app

Environment

version: netlify-cli/19.1.4 darwin-arm64 node-v22.14.0

vite version: ^6.2.0

Laptop: Apple M3

@ECorreia45 ECorreia45 added the type: bug code to address defects in shipped code label Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

1 participant