question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Linting doesn't work for @openzeppelin/contracts

See original GitHub issue

Hi,

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) image

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:26 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
juanfranblancocommented, Sep 28, 2021

@iboxgithub multiple workspace folders is supported now, have a go, let me know if you see any issues.

0reactions
iboxgithubcommented, Feb 10, 2022

Hi, I use npm (and I already did the remove node_modules etc…)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found