Skip to content

TypeError: Cannot read properties of undefined (reading 'prototype'). #5294

Discussion options

You must be logged in to vote

@Glow-in-the-dark The issue was in one of the dependencies, and it is working now; as you can see below.

Remove the node_modules folder, package-lock.json or yarn.lock file (use either npm or yarn, not both);

package.json file;

{
  "name": "hardhat-simple-storage",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "@nomicfoundation/hardhat-toolbox": "^1.0.2",
    "dotenv": "^16.0.3",
    "hardhat": "^2.13.1"
  }
}

hardhat.config.js file

require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
// require("@nomiclabs/har…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Glow-in-the-dark
Comment options

@alymurtazamemon
Comment options

Answer selected by Glow-in-the-dark
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants