scroll-tech / scroll-guides

MIT License
43 stars 180 forks source link

fix: Update Hardhat Version to Support Node 21 #14

Open 0xBitzz opened 3 months ago

0xBitzz commented 3 months ago

Description

When attempting to clone the repository as stated in the docs and run yarn install, I encountered an error related to the compatibility of the Hardhat version specified in the project. The error message reads:

error hardhat@2.10.2: The engine "node" is incompatible with this module. Expected version "^14.0.0 || ^16.0.0 || ^18.0.0". Got "21.4.0"

Upon investigation, it seems that the Hardhat version specified in the package.json file does not support Node.js version 21. It would be beneficial to update the required Hardhat version to ensure compatibility with the latest Node.js releases.

Proposed Solution (Fix!):

Upgrade the Hardhat version in package.json to one that supports Node.js 21, for example, Hardhat 2.22.3 works.

Additional Information: