Cannot find module with vite + react + typescript + yarn build
I'm going crazy trying to figure out the reasoning I'm getting
along with a billion other Cannot find module errors with my new Vite project. It's a vite + react + typescript project that's almost directly out of the box. When I've done this with other projects it worked, so I'm confused where I might be going wrong. Anyone seen this before?
Build command is
yarn build
, dist
is the output directory. Versions are [email protected], [email protected]
tsconfig.json
.eslint.cjs
1 Reply
Bit of an update. I downgraded to Vite 4 and copied over all my configs from my old project and it worked. Not sure which part was broken, but going with this for now. Going to leave this open in case someone else has any input on why it might be broken with Vite 5, otherwise happy to close it.