vscode-solidity
vscode-solidity copied to clipboard
Cannot Go to Definition of "@openzepplin" imports
When importing like this
import "@openzeppelin/contracts/utils/Strings.sol";
I cannot Go To Definition.
However if I import like this:
import "../node_modules/@openzeppelin/contracts/utils/Strings.sol";
then this works.
How can I get it to understand the pathing? PS: I've got this in the settings as hinted at elsewhere and it still doesn't work:
"solidity.packageDefaultDependenciesContractsDirectory": "",
"solidity.packageDefaultDependenciesDirectory": "node_modules",
Having the very same issue here
@jtwigg @markokhman Which package manager do you use? pnpm? Can you remove node_modules and install again with npm and report back?
Having the very same issue here