joaopaulomoraes / reactjs-vite-tailwindcss-boilerplate

This is a boilerplate build with Vite, React 18, TypeScript, Vitest, Testing Library, TailwindCSS 3, Eslint and Prettier.
https://reactjs-vite-tailwindcss-boilerplate.vercel.app
MIT License
530 stars 105 forks source link

Add react types #70

Closed qubbit closed 1 year ago

qubbit commented 1 year ago

Otherwise linter will throw this error: Cannot find module 'react/jsx-runtime' or its corresponding type declarations

I haven't seen this affecting pnpm dev but the error shows up in text editor (by the virtue of LSP I suppose)

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
reactjs-vite-tailwindcss-boilerplate ❌ Failed (Inspect) Nov 27, 2022 at 2:01AM (UTC)
joaopaulomoraes commented 1 year ago

Hello, @qubbit! Thanks for the interaction.

Just to enrich the debug, could you please specify the process to get this error? As well as your env info, node version, npm/yarn?

joaopaulomoraes commented 1 year ago

This is an pnpm change to not hoisted @types by default in v7.

joaopaulomoraes commented 1 year ago

Thanks, @qubbit!