skip to Main Content

Yesterday I started a Vite project and closed it now I opened it again but when I run ‘npm run dev’ I get an error so I cant run my project I am using Vite with react and typescript.

Here is a picture of the error I would appreciate help because I have no idea how to fix this.

screenshot

2

Answers


  1. Chosen as BEST ANSWER

    "Make sure you are in the directory where the project is and try (npm init) then (npm install) and wait after that (npm run dev)" is the solution that worked for me


  2. It looks like an issue with node. Check if the json file is within the chat directory.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search