npx hardhat node
npx hardhat run scripts/deploy.js --network localhost
copy the respective values
nftmarketplaceaddress
andnftaddress
toconfig.js
file in the project root
npm run dev
solution : webpack/webpack#14532 (comment)
set the env variable as
export NODE_OPTIONS=--openssl-legacy-provider