Open ChrisiPK opened 1 year ago
When running ganache filecoin, the command fails with the following output:
ganache filecoin
node ➜ /workspaces/fvm-space-warp (main ✗) $ yarn ganache filecoin yarn run v1.22.18 $ /workspaces/fvm-space-warp/node_modules/.bin/ganache filecoin ganache v7.7.4 (@ganache/cli: 0.8.3, @ganache/core: 0.8.3) Cannot find module './src/connector' Require stack: - /workspaces/fvm-space-warp/node_modules/@ganache/filecoin/lib/index.js - /workspaces/fvm-space-warp/node_modules/ganache/dist/node/1.js - /workspaces/fvm-space-warp/node_modules/ganache/dist/node/cli.js error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The issue is that the @ganache/filecoin package contains the following code in lib/index.js, line 9:
@ganache/filecoin
lib/index.js
const connector_1 = require("./src/connector");
This module is not found, as it is not part of the distributed package. Instead, the line must be changed to the following to make it work:
const connector_1 = require("./dist/node/ganache-filecoin.min.js");
When running
ganache filecoin
, the command fails with the following output:The issue is that the
@ganache/filecoin
package contains the following code inlib/index.js
, line 9:This module is not found, as it is not part of the distributed package. Instead, the line must be changed to the following to make it work: