create-vite-app icon indicating copy to clipboard operation
create-vite-app copied to clipboard

[vite] failed to load config from /Users/crazyair/Code/my-react-project/vite.config.js:

Open crazyair opened this issue 4 years ago • 1 comments

image

➜  my-react-project yarn dev
yarn run v1.22.5
warning package.json: No license field
$ vite
[vite] failed to load config from /Users/crazyair/Code/my-react-project/vite.config.js:
/Users/crazyair/Code/my-react-project/vite.config.js:2
import reactPlugin from 'vite-plugin-react'
       ^^^^^^^^^^^

crazyair avatar Dec 24 '20 01:12 crazyair

Look like the vite-plugin-react is not installed.Can you have a try with yarn add 'vite-plugin-react' --dev?

underfin avatar Dec 24 '20 10:12 underfin