为什么无法从任何来源找到合同的工件

Why Could not find artifacts for contract from any sources

我将 windows 10 与 truffle 和 ganache-cli 一起使用。我有 2 个要部署的合同文件包含合同中定义的其他合同的接口:

合同:

ERC721Mintable.sol

Verifier.sol

SolnSquareVerifier.sol

pragma solidity >=0.4.21 <0.6.0;

import "./ERC721Mintable.sol";
import "./Verifier.sol";

contract SolnSqaureVerifier is CraveuERC721Token {

    SquareVerifier squareVerifier;

    constructor(address verifierAddress) public {
        squareVerifier = SquareVerifier(verifierAddress);
    }

这是我的 deploy_contracts.js:

const SquareVerifier = artifacts.require("Verifier");
const SolnSquareVerifier = artifacts.require("SolnSquareVerifier");

module.exports = function(deployer) {
  deployer.deploy(SquareVerifier).then( () => {
    return deployer.deploy(SolnSquareVerifier, SquareVerifier.address);
  });
};

我使用的是 truffle 版本 5.0.18

Error Produced: Error: Error: Could not find artifacts for SolnSquareVerifier from any sources

你的合约名称有错字SolnSqaureVerifier,应该是SolnSquareVerifier