Linting doesn't work for @openzeppelin/contracts
See original GitHub issueHi,
I wok with VSCode + juanblanco.solidity plugin. My issue is that despite compilling perfectly well, the linting shows an error with OpenZeppelin imports
import "@openzeppelin/contracts/access/Ownable.sol";
(cf screenshot below)
Error:
Source "@openzeppelin/contracts/access/Ownable.sol" not found
File import callback not supported
is it the expected behavior or is there a fix planned for this? thanks for your help!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:26 (12 by maintainers)
Top Results From Across the Web
Trouble importing OpenZeppelin Contracts into VS Code
I'm using the latest OpenZeppelin code that is downloaded from NPM. Solidity: Package Default Dependencies Contracts Directory = "" I changed ...
Read more >Linting not working. Nothing is showing up when there are ...
I tried & it's still not working, and now I'm getting a new error. Source "@openzeppelin/contracts/access/Ownable.sol" not found: File import callback not ...
Read more >Importing openzeppelin in hardhat contracts error
I just had this problem and solved it by moving the entire "@openzeppelin/contracts" to the root of where the contract is written.
Read more >Using OpenZeppelin Contracts with Python and Brownie
No copying files, no remapping import paths, no thought about namespace collisions… it just works. Packages can be retrieved from Github as well...
Read more >Transaction reverted: function call to a non-contract account ...
It means, the interface is trying to call a contract that doesn't exist.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@iboxgithub multiple workspace folders is supported now, have a go, let me know if you see any issues.
Hi, I use npm (and I already did the remove node_modules etc…)