anza-xyz / solana-pay

A new standard for decentralized payments.
https://solanapay.com
Apache License 2.0
1.29k stars 450 forks source link

Required Package missing in NFT create example #183

Closed flodef closed 1 year ago

flodef commented 1 year ago

After the install, when trying to run the app, I obtain the following error :

It looks like you're trying to use TypeScript but do not have the required package(s) installed.

Please install @types/react by running:

        yarn add --dev @types/react

Trying to install the package with npm or yarn does not change anything. Upgraded the packages didn't do anything either. Staying stuck. Any idea on how to solve this?

Here is the full log:

flodef@penguin:~/github/FiMs-Pay/examples/nft-create$ npm run dev

> nextjs-tailwindcss-typescript-starter@0.1.0 dev
> next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
It looks like you're trying to use TypeScript but do not have the required package(s) installed.

Please install @types/react by running:

        yarn add --dev @types/react

If you are not trying to use TypeScript, please remove the tsconfig.json file from your package root (and any TypeScript files in your pages directory).

flodef@penguin:~/github/FiMs-Pay/examples/nft-create$ yarn add --dev @types/react
yarn add v1.22.19
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
error An unexpected error occurred: "Commit hash required".
info If you think this is a bug, please open a bug report with the information provided in "/home/flodef/github/FiMs-Pay/examples/nft-create/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
tribixbite commented 1 year ago

yarn upgrade next@latest react-dom@latest

image
flodef commented 1 year ago

It solved the problem indeed !! Thanks a lot for sharing :-D