Hey.. Just starting out with hardhat, i'm following the tutorial for beginners, didn't even start that i get this error:

Error: Cannot find module 'chai'

From:
const { expect } = require("chai")

But module is there , VSC suggests:

File is a CommonJS module; it may be converted to an ES module.

Any clue? 🤯

Sep 27, 2022, 5:18 PM
Solved by upgrading node js 👍
Sep 27, 2022, 5:27 PM

© 2024 Draquery.com All rights reserved.