Import errors from previously working project

Hi everyone,

running into this error with a project that was compiling and migrating fine some 6 weeks ago. Now it is broken without me changing anything.

ParserError: Source "/C/Users/sound/Desktop/MOTD/meme-repo-copy/node_modules/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol" not found: File import callback not supported
 --> /C/Users/sound/Desktop/MOTD/meme-repo-copy/src/contracts/src/MOTDSaleParametersProviderV1.sol:4:1:
  |
4 | import "../../../node_modules/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

,ParserError: Source "/C/Users/sound/Desktop/MOTD/meme-repo-copy/node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol" not found: 
File import callback not supported
 --> /C/Users/sound/Desktop/MOTD/meme-repo-copy/src/contracts/src/MOTDSaleParametersProviderV1.sol:5:1:
  |
5 | import "../../../node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

,ParserError: Source "/C/Users/sound/Desktop/MOTD/meme-repo-copy/node_modules/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol" not found: File import callback not supported
 --> /C/Users/sound/Desktop/MOTD/meme-repo-copy/src/contracts/src/MOTDSaleParametersProviderV1.sol:6:1:
  |
6 | import "../../../node_modules/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

,ParserError: Source "/C/Users/sound/Desktop/MOTD/meme-repo-copy/node_modules/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol" not found: 
File import callback not supported
 --> /C/Users/sound/Desktop/MOTD/meme-repo-copy/src/contracts/src/MOTDTreasuryV1.sol:4:1:
  |
4 | import "../../../node_modules/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

,ParserError: Source "/C/Users/sound/Desktop/MOTD/meme-repo-copy/node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol" not found: 
File import callback not supported
 --> /C/Users/sound/Desktop/MOTD/meme-repo-copy/src/contracts/src/MOTDTreasuryV1.sol:5:1:
  |
5 | import "../../../node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

,ParserError: Source "/C/Users/sound/Desktop/MOTD/meme-repo-copy/node_modules/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol" not found: File import callback not supported
 --> /C/Users/sound/Desktop/MOTD/meme-repo-copy/src/contracts/src/MOTDTreasuryV1.sol:6:1:
  |
6 | import "../../../node_modules/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

,ParserError: Source "/C/Users/sound/Desktop/MOTD/meme-repo-copy/node_modules/@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol" not 
found: File import callback not supported
 --> /C/Users/sound/Desktop/MOTD/meme-repo-copy/src/contracts/src/MemeOfTheDayV1.sol:5:1:
  |
5 | import "../../../node_modules/@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

,ParserError: Source "/C/Users/sound/Desktop/MOTD/meme-repo-copy/node_modules/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol" not found: 
File import callback not supported
 --> /C/Users/sound/Desktop/MOTD/meme-repo-copy/src/contracts/src/MemeOfTheDayV1.sol:6:1:
  |
6 | import "../../../node_modules/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

,ParserError: Source "/C/Users/sound/Desktop/MOTD/meme-repo-copy/node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol" not found: 
File import callback not supported
 --> /C/Users/sound/Desktop/MOTD/meme-repo-copy/src/contracts/src/MemeOfTheDayV1.sol:7:1:
  |
7 | import "../../../node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

,ParserError: Source "/C/Users/sound/Desktop/MOTD/meme-repo-copy/node_modules/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol" not found: File import callback not supported
 --> /C/Users/sound/Desktop/MOTD/meme-repo-copy/src/contracts/src/MemeOfTheDayV1.sol:8:1:
  |
8 | import "../../../node_modules/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

,ParserError: Source "/C/Users/sound/Desktop/MOTD/meme-repo-copy/node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol" not found: 
File import callback not supported
 --> /C/Users/sound/Desktop/MOTD/meme-repo-copy/src/contracts/src/MemeSaleV1.sol:9:1:
  |
9 | import "../../../node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

,ParserError: Source "/C/Users/sound/Desktop/MOTD/meme-repo-copy/node_modules/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol" not found: File import callback not supported
  --> /C/Users/sound/Desktop/MOTD/meme-repo-copy/src/contracts/src/MemeSaleV1.sol:10:1:
   |
10 | import "../../../node_modules/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

,ParserError: Source "/C/Users/sound/Desktop/MOTD/meme-repo-copy/node_modules/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol" not found: 
File import callback not supported
  --> /C/Users/sound/Desktop/MOTD/meme-repo-copy/src/contracts/src/MemeSaleV1.sol:11:1:
   |
11 | import "../../../node_modules/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

,ParserError: Source "/C/Users/sound/Desktop/MOTD/meme-repo-copy/node_modules/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol" not found: File import callback not supported
  --> /C/Users/sound/Desktop/MOTD/meme-repo-copy/src/contracts/src/MemeSaleV1.sol:12:1:
   |
12 | import "../../../node_modules/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Compilation failed. See above.

:computer: Environment

package.json
{
  "name": "meme-of-the-day",
  "homepage": ".",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "@openzeppelin/truffle-upgrades": "^1.5.2",
    "@truffle/hdwallet-provider": "^1.4.1",
    "@types/jest": "^24.0.0",
    "@types/node": "^12.0.0",
    "@types/react": "^16.9.0",
    "@types/react-dom": "^16.9.0",
    "@types/react-router-dom": "^5.1.5",
    "@types/styled-components": "^5.1.3",
    "chai": "^4.2.0",
    "chai-as-promised": "^7.1.1",
    "chai-bignumber": "^3.0.0",
    "concurrently": "^5.3.0",
    "cross-var": "^1.1.0",
    "dotenv-cli": "^4.0.0",
    "eth-gas-reporter": "^0.2.20",
    "ganache-cli": "^6.10.2",
    "rimraf": "^3.0.2",
    "truffle": "^5.3.14",
    "truffle-hdwallet-provider": "^1.0.17",
    "typescript": "^3.9.5"
  },
  "dependencies": {
    "@ceramicnetwork/ceramic-http-client": "^0.7.2",
    "@ceramicstudio/idx-constants": "^0.3.0",
    "@ceramicstudio/idx-web": "^0.2.0",
    "@openzeppelin/contracts": "^3.3.0",
    "@openzeppelin/contracts-upgradeable": "^4.0.0",
    "@testing-library/jest-dom": "^4.2.4",
    "@testing-library/react": "^9.3.2",
    "@testing-library/user-event": "^7.1.2",
    "@textile/hub": "^2.0.2",
    "@walletconnect/web3-provider": "^1.3.1",
    "3id-connect": "^1.0.0-alpha.8",
    "babel-polyfill": "^6.26.0",
    "babel-preset-env": "1.7.0",
    "babel-preset-es2015": "6.24.1",
    "babel-preset-stage-2": "6.24.1",
    "babel-preset-stage-3": "6.24.1",
    "babel-register": "^6.26.0",
    "bootstrap": "4.3.1",
    "browser-image-resizer": "^2.1.3",
    "dayjs": "^1.9.5",
    "eth-sig-util": "^3.0.0",
    "ethers": "^5.0.14",
    "isomorphic-ws": "^4.0.1",
    "react": "^16.13.1",
    "react-bootstrap": "^1.3.0",
    "react-dom": "^16.13.1",
    "react-router-dom": "^5.2.0",
    "react-scripts": "3.4.3",
    "styled-components": "^5.2.0",
    "web3": "^1.3.0",
    "web3modal": "^1.9.2",
    "ws": "^7.3.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "compile": "truffle compile",
    "test-contracts": "dotenv truffle test ./src/contracts/test/*",
    "ganache": "dotenv npm run run:ganache",
    "run:ganache": "cross-var  ganache-cli --chainId $npm_package_config_ganache_networkId --networkId $npm_package_config_ganache_networkId --allowUnlimitedContractSize --gasLimit $npm_package_config_ganache_gasLimit --gasPrice $npm_package_config_ganache_gasPrice --mnemonic '$MNEMONIC'",
    "migrate-dev": "dotenv npm run run:migrate-dev",
    "run:migrate-dev": "rimraf ./src/contracts/abis && truffle migrate --reset --compile-all --network development",
    "migratematic": "rimraf ./src/abis && truffle migrate --reset --compile-all --network matic",
    "deploydev": "concurrently \"npm run ganache\" \"npm run migrate-dev\""
  },
  "config": {
    "ganache": {
      "networkId": 3431,
      "gasPrice": 25000000000,
      "gasLimit": 6500000
    }
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

Anyone have a clue why??

And when fixing the imports by importing directly from @openzeppelin/ā€¦

this error pops-up:

errorMessage
Compiling your contracts...
===========================
> Compiling @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol
> Compiling @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol
> Compiling @openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol
> Compiling @openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol
> Compiling @openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol
> Compiling @openzeppelin\contracts-upgradeable\proxy\utils\Initializable.sol
> Compiling @openzeppelin\contracts-upgradeable\token\ERC1155\IERC1155ReceiverUpgradeable.sol
> Compiling @openzeppelin\contracts-upgradeable\token\ERC1155\IERC1155Upgradeable.sol
> Compiling @openzeppelin\contracts-upgradeable\token\ERC1155\extensions\IERC1155MetadataURIUpgradeable.sol
> Compiling @openzeppelin\contracts-upgradeable\utils\AddressUpgradeable.sol
> Compiling @openzeppelin\contracts-upgradeable\utils\ContextUpgradeable.sol
> Compiling @openzeppelin\contracts-upgradeable\utils\introspection\ERC165Upgradeable.sol
> Compiling @openzeppelin\contracts-upgradeable\utils\introspection\IERC165Upgradeable.sol
> Compiling .\src\contracts\src\ECRecover.sol
> Compiling .\src\contracts\src\EIP712.sol
> Compiling .\src\contracts\src\EIP712Domain.sol
> Compiling .\src\contracts\src\MOTDSaleParametersProviderV1.sol
> Compiling .\src\contracts\src\MOTDTreasuryV1.sol
> Compiling .\src\contracts\src\MemeOfTheDayV1.sol
> Compiling .\src\contracts\src\MemeSaleV1.sol
> Compiling .\src\contracts\src\Migrations.sol
> Compiling .\src\contracts\src\ECRecover.sol
> Compiling .\src\contracts\src\EIP712.sol
> Compiling .\src\contracts\src\EIP712Domain.sol
> Compiling .\src\contracts\src\MOTDSaleParametersProviderV1.sol
> Compiling .\src\contracts\src\MOTDTreasuryV1.sol
> Compiling .\src\contracts\src\MemeOfTheDayV1.sol
> Artifacts written to C:\Users\sound\Desktop\MOTD\meme-repo-copy\src\contracts\abis
> Compiled successfully using:
   - solc: 0.8.0+commit.c7dfd78e.Emscripten.clang




Starting migrations...
======================
> Network name:    'develop'
> Network id:      5777
> Block gas limit: 6721975 (0x6691b7)


1_initial_migration.js
======================

   Replacing 'Migrations'
   ----------------------
   > transaction hash:    0x057cdab13d677f01aed13adb7d6480974a6c2a0252c81506bd95a53ad06ffbeb
   > Blocks: 0            Seconds: 0
   > contract address:    0x3F0431B4D908339285A421FEEcEBbeA8601bB022
   > block number:        3
   > block timestamp:     1625834233
   > account:             0x01e79a56DB527d0b4572FD0d750717cc8dA00BB5
   > balance:             99.998607774
   > gas used:            326789 (0x4fc85)
   > gas price:           2 gwei
   > value sent:          0 ETH
   > total cost:          0.000653578 ETH


   > Saving migration to chain.
   > Saving artifacts
   -------------------------------------
   > Total cost:         0.000653578 ETH


2_MOTD_V1_Proxy_Deployment.js
=============================

   Replacing 'MemeOfTheDayV1'
   --------------------------
   > transaction hash:    0xad6117d6b071fdddee491e7f9bb4b66c28f33e97c618011a971a1afa8ce1875d
   > Blocks: 0            Seconds: 0
   > contract address:    0x2F7e1754aB78B574cC1fAfb4c93556fa6e90F194
   > block number:        5
   > block timestamp:     1625834238
   > account:             0x01e79a56DB527d0b4572FD0d750717cc8dA00BB5
   > balance:             99.99078866
   > gas used:            3867022 (0x3b018e)
   > gas price:           2 gwei
   > value sent:          0 ETH
   > total cost:          0.007734044 ETH


   Deploying 'ProxyAdmin'
   ----------------------
   > transaction hash:    0x78ec3a992d8ed5dedac0f5663a4a20a92ed859b74accb03502866d8dfdcc38ae

TypeError: data.contract.interfaceAdapter.getTransactionCostReport is not a function
    at Reporter.postDeploy (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\reporters\reporters\migrations-V5\reporter.js:373:1)
    at C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\node_modules\emittery\index.js:69:1
    at Array.map (<anonymous>)
    at Emittery.emit (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\node_modules\emittery\index.js:67:1)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\deployer\src\deployment.js:381:1
    at Object.deploy (C:\Users\sound\Desktop\MOTD\meme-repo-copy\node_modules\@openzeppelin\truffle-upgrades\src\utils\deploy.ts:6:48)
    at Object.resumeOrDeploy (C:\Users\sound\Desktop\MOTD\meme-repo-copy\node_modules\@openzeppelin\upgrades-core\src\deployment.ts:41:22)
    at C:\Users\sound\Desktop\MOTD\meme-repo-copy\node_modules\@openzeppelin\upgrades-core\src\impl-store.ts:33:23
    at Manifest.lockedRun (C:\Users\sound\Desktop\MOTD\meme-repo-copy\node_modules\@openzeppelin\upgrades-core\src\manifest.ts:90:14)
    at fetchOrDeployGeneric (C:\Users\sound\Desktop\MOTD\meme-repo-copy\node_modules\@openzeppelin\upgrades-core\src\impl-store.ts:25:24)
    at deployProxy (C:\Users\sound\Desktop\MOTD\meme-repo-copy\node_modules\@openzeppelin\truffle-upgrades\src\deploy-proxy.ts:58:24)
    at module.exports (C:\Users\sound\Desktop\MOTD\meme-repo-copy\src\contracts\migrations\2_MOTD_V1_Proxy_Deployment.js:15:19)
    at Migration._deploy (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:80:1)
    at Migration._load (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:61:1)
    at Migration.run (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:218:1)
    at Object.runMigrations (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:150:1)
    at Object.runFrom (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:110:1)
    at Object.runAll (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:114:1)
    at Object.run (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:79:1)
    at runMigrations (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:258:1)
    at Object.run (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:223:1)
    at Command.run (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\command.js:167:1)

> Duplicate contract names found for ECRecover.
> This can cause errors and unknown behavior. Please rename one of your contracts.

> Duplicate contract names found for EIP712.
> This can cause errors and unknown behavior. Please rename one of your contracts.

> Duplicate contract names found for EIP712Domain.
> This can cause errors and unknown behavior. Please rename one of your contracts.

> Duplicate contract names found for MOTDSaleParametersProviderV1.
> This can cause errors and unknown behavior. Please rename one of your contracts.

> Duplicate contract names found for MOTDTreasuryV1.
> This can cause errors and unknown behavior. Please rename one of your contracts.

> Duplicate contract names found for MemeOfTheDayV1.
> This can cause errors and unknown behavior. Please rename one of your contracts.
- Blocks: 0            Seconds: 0
- Saving migration to chain.
- Blocks: 0            Seconds: 0
- Blocks: 0            Seconds: 0

which leaves me completely puzzled.

1 Like
package.json
{
  "name": "meme-of-the-day",
  "homepage": ".",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "@openzeppelin/truffle-upgrades": "^1.5.2",
    "@truffle/hdwallet-provider": "^1.4.1",
    "@types/jest": "^24.0.0",
    "@types/node": "^12.0.0",
    "@types/react": "^16.9.0",
    "@types/react-dom": "^16.9.0",
    "@types/react-router-dom": "^5.1.5",
    "@types/styled-components": "^5.1.3",
    "chai": "^4.2.0",
    "chai-as-promised": "^7.1.1",
    "chai-bignumber": "^3.0.0",
    "concurrently": "^5.3.0",
    "cross-var": "^1.1.0",
    "dotenv-cli": "^4.0.0",
    "eth-gas-reporter": "^0.2.20",
    "ganache-cli": "^6.10.2",
    "rimraf": "^3.0.2",
    "truffle": "^5.3.14",
    "truffle-hdwallet-provider": "^1.0.17",
    "typescript": "^3.9.5"
  },
  "dependencies": {
    "@ceramicnetwork/ceramic-http-client": "^0.7.2",
    "@ceramicstudio/idx-constants": "^0.3.0",
    "@ceramicstudio/idx-web": "^0.2.0",
    "@openzeppelin/contracts": "^3.3.0",
    "@openzeppelin/contracts-upgradeable": "^4.0.0",
    "@testing-library/jest-dom": "^4.2.4",
    "@testing-library/react": "^9.3.2",
    "@testing-library/user-event": "^7.1.2",
    "@textile/hub": "^2.0.2",
    "@walletconnect/web3-provider": "^1.3.1",
    "3id-connect": "^1.0.0-alpha.8",
    "babel-polyfill": "^6.26.0",
    "babel-preset-env": "1.7.0",
    "babel-preset-es2015": "6.24.1",
    "babel-preset-stage-2": "6.24.1",
    "babel-preset-stage-3": "6.24.1",
    "babel-register": "^6.26.0",
    "bootstrap": "4.3.1",
    "browser-image-resizer": "^2.1.3",
    "dayjs": "^1.9.5",
    "eth-sig-util": "^3.0.0",
    "ethers": "^5.0.14",
    "isomorphic-ws": "^4.0.1",
    "react": "^16.13.1",
    "react-bootstrap": "^1.3.0",
    "react-dom": "^16.13.1",
    "react-router-dom": "^5.2.0",
    "react-scripts": "3.4.3",
    "styled-components": "^5.2.0",
    "web3": "^1.3.0",
    "web3modal": "^1.9.2",
    "ws": "^7.3.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "compile": "truffle compile",
    "test-contracts": "dotenv truffle test ./src/contracts/test/*",
    "ganache": "dotenv npm run run:ganache",
    "run:ganache": "cross-var  ganache-cli --chainId $npm_package_config_ganache_networkId --networkId $npm_package_config_ganache_networkId --allowUnlimitedContractSize --gasLimit $npm_package_config_ganache_gasLimit --gasPrice $npm_package_config_ganache_gasPrice --mnemonic '$MNEMONIC'",
    "migrate-dev": "dotenv npm run run:migrate-dev",
    "run:migrate-dev": "rimraf ./src/contracts/abis && truffle migrate --reset --compile-all --network development",
    "migratematic": "rimraf ./src/abis && truffle migrate --reset --compile-all --network matic",
    "deploydev": "concurrently \"npm run ganache\" \"npm run migrate-dev\""
  },
  "config": {
    "ganache": {
      "networkId": 3431,
      "gasPrice": 25000000000,
      "gasLimit": 6500000
    }
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

@ThomasEnder did you resolve this? Iā€™m also getting the getTransactionCostReport error

downgrading truffle to 5.2.6 seems to work

delete the node_modules/ folder and run npm install again