Skip to content

Dev commands not working when vite is installed #7156

Open
@ECorreia45

Description

@ECorreia45

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions