DEV Community

Cover image for Error Fix: Source "@openzeppelin/contracts/token/ERC721/ERC721.sol" not found: File import callback not supported
Suulola Oluwaseyi
Suulola Oluwaseyi

Posted on

Error Fix: Source "@openzeppelin/contracts/token/ERC721/ERC721.sol" not found: File import callback not supported

If you've tried to work with @openzeppelin/contracts on VS Code, you might come across this error

VS Code Error

The issue above is not with your code but with a particular VS Code extension - Solidity extension by Juan Blanco.

The latest version of v0.0.137 shows that error. To correct this

  • Go to Extensions and search for Solidity
  • You should see something like this

Juan Blanco Solidity VS Code extension

  • Click on the dropdown beside the Uninstall button and select Install Another Version

Install Another Version

  • Select Version 0.0.135 from the list of options
    Version List

  • Allow the version to install
    Installation

  • Once the installation is done, you will be required to reload VS Code and the error should be gone at this point

Restart VS Code

Viola🥳🥳🥳🥳🥳🥳

Error Fixed

The issue should be gone by now.

Hopefully, this issue is fixed in the next version release of v0.0.138

Top comments (0)