Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript errors with the ethers added functionality, like ethers.getSigners() #6109

Open
Muhammad-Altabba opened this issue Jan 5, 2025 · 0 comments
Assignees

Comments

@Muhammad-Altabba
Copy link

Version of Hardhat

2.22.17

What happened?

After importing "@nomicfoundation/hardhat-toolbox"; at hardhat.config.ts, the hardhat commands work. But compiling the project with tsc gives errors with the ethers added functionality, like ethers.getSigners().

Minimal reproduction steps

The project was created with pnpm add -D hardhat and npx hardhat init using the template Create a TypeScript project.

Here is the tsconfig.json file:

{
  "compilerOptions": {
    "target": "es2020",
    "module": "commonjs",
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "skipLibCheck": true,
    "resolveJsonModule": true,
    "outDir": "./build"
  }
}

And here is the hardhat.config.ts:

import { HardhatUserConfig } from "hardhat/config";
import '@nomicfoundation/hardhat-toolbox';

const config: HardhatUserConfig = {
  solidity: "0.8.28",
};

export default config;

Search terms

ethers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants