File import callback not supported?

Tried to run:

1.) Dappuniversity project (dappuniversity/dbank)
2.) pet-shop-tutorial

Truffle v5.3.3 (core: 5.3.3)
Node v14.15.5

How can ser compile code @ the 0.8.4 to import OpenZeppelin’s ERC20.sol template, when Truffle requires it’s compiler/solc to match 5.3.3?

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract Token is ERC20 {

  //add minter variable

  //add minter changed event

  constructor() public payable ERC20("Name", "Symbol") {

    //asign initial minter


  //Add pass minter role function

  function mint(address account, uint256 amount) public {

    //check if msg.sender have minter role

    _mint(account, amount);



Source “@openzeppelin/contracts/token/ERC20/ERC20.sol” not found: File import callback not supported

1 Like

Hi @GoGetterMeme,

Welcome to the community :wave:

In your Truffle configuration you can specify the version of the Solidity compiler to use.

Yes, but when I downgrade to match Truffle’s. The import callback error remains, prompting me to update to 0.8.4

How can this be reconciled?