pedr0fontoura / fivem-appearance

👀 A flexible player customization script for FiveM.
https://forum.cfx.re/t/release-fivem-appearance/2438537
MIT License
120 stars 72 forks source link

On yarn build | error TS2688: Cannot find type definition file for 'react/next'. #91

Closed N0edL closed 7 months ago

N0edL commented 8 months ago

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.