Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
March 31, 2022 08:55 am GMT

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


Original Link: https://dev.to/suulola/error-fix-source-openzeppelincontractstokenerc721erc721sol-not-found-file-import-callback-not-supported-5ccb

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To