incompatibility between symbol resolution in vscode and hardhat compile #7581
Unanswered
baiwfg2
asked this question in
Troubleshooting
Replies: 1 comment
-
|
Hey @baiwfg2 is this in Hardhat 2 or Hardhat 3. Hardhat 3 is ESM first, can you try importing rather than requiring (e.g. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Each time I start to write js hardhat task or deploy script, I'd like add
const { network, getNamedAccounts, deployments } = require("hardhat")to facilitate symbol resolution in vscode. However it will make compiling failed with error:But if I remove those, I can't jump to symbols' definitions related to
network.xxxordeployments.xx. How would I resolve this ?Beta Was this translation helpful? Give feedback.
All reactions