Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

System Error when running Ganache 2.7.1 on win32 #5803

Open
kyndle-ozzo opened this issue Feb 26, 2024 · 0 comments
Open

System Error when running Ganache 2.7.1 on win32 #5803

kyndle-ozzo opened this issue Feb 26, 2024 · 0 comments

Comments

@kyndle-ozzo
Copy link

kyndle-ozzo commented Feb 26, 2024

This error first appeared when I tried to deploy an upgradable contract.

My migration script looks like this:

const { deployProxy } = require('@openzeppelin/truffle-upgrades');
const EthStakerERC721Upgradeable = artifacts.require('./EthStakerERC721Upgradeable');

module.exports = async function (deployer) {
  const _baseURIInit = "tempBasURI";
  const _authSigner = "tempAuthSignerAddress";
  console.log("Deploying ERC721Upgradeable...");
  const instance = await deployProxy(EthStakerERC721Upgradeable, [_baseURIInit, _authSigner], { deployer, initializer: 'initialize' });
  console.log('Deployed', instance.address);
};

What's weird is that even after reverting this script to how it was, this error continues to happen. Ganache crashes everytime I run tuffle migrate/

PLATFORM: win32
GANACHE VERSION: 2.7.1

EXCEPTION:

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null
    at validateString (internal/validators.js:124:11)
    at Object.extname (path.js:752:5)
    at ProjectFsWatcher.handleContractFileEvent (C:\Program Files\WindowsApps\GanacheUI_2.7.1.0_x64__rb4352f0jd4m2\app\resources\static\node\truffle-integration\projectFsWatcher.js:155:28)
    at FSWatcher.<anonymous> (C:\Program Files\WindowsApps\GanacheUI_2.7.1.0_x64__rb4352f0jd4m2\app\resources\static\node\truffle-integration\projectFsWatcher.js:186:16)
    at FSWatcher.emit (events.js:315:20)
    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:186:12)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant