When i try building with yarn build i get this error
$ cross-env VITE_ENV=production tsc && vite build
error TS2688: Cannot find type definition file for 'react/next'.
The file is in the program because:
Entry point of type library 'react/next' specified in compilerOptions
tsconfig.json:25:15
25 "types": ["react/next"]
~~~~~~~~~~~~
File is entry point of type library specified here.
Found 1 error.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
When i try building with yarn build i get this error