ChainSafe/filsnap

yarn demo produces Error: Cannot find module './lib/_stream_readable.js'

Closed this issue · 1 comments

Following instructions from README:

  1. corepack enable
  2. yarn install
  3. yarn demo

Then:

nard@wintermute:/mnt/c/Users/davej/Code/filsnap$ yarn demo
node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module './lib/_stream_readable.js'
Require stack:
- /mnt/c/Users/davej/Code/filsnap/node_modules/readable-stream/readable.js
- /mnt/c/Users/davej/Code/filsnap/node_modules/duplexify/index.js
- /mnt/c/Users/davej/Code/filsnap/node_modules/peek-stream/index.js
- /mnt/c/Users/davej/Code/filsnap/node_modules/gunzip-maybe/index.js
- /mnt/c/Users/davej/Code/filsnap/node_modules/@metamask/snap-controllers/dist/snaps/utils.js
- /mnt/c/Users/davej/Code/filsnap/node_modules/@metamask/snaps-cli/dist/cmds/manifest/manifestHandler.js
- /mnt/c/Users/davej/Code/filsnap/node_modules/@metamask/snaps-cli/dist/cmds/build/buildHandler.js
- /mnt/c/Users/davej/Code/filsnap/node_modules/@metamask/snaps-cli/dist/cmds/build/index.js
- /mnt/c/Users/davej/Code/filsnap/node_modules/@metamask/snaps-cli/dist/cmds/index.js
- /mnt/c/Users/davej/Code/filsnap/node_modules/@metamask/snaps-cli/dist/main.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)  
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)      
    '/mnt/c/Users/davej/Code/filsnap/node_modules/duplexify/index.js',
    '/mnt/c/Users/davej/Code/filsnap/node_modules/peek-stream/index.js',
    '/mnt/c/Users/davej/Code/filsnap/node_modules/gunzip-maybe/index.js',
    '/mnt/c/Users/davej/Code/filsnap/node_modules/@metamask/snap-controllers/dist/snaps/utils.js',
    '/mnt/c/Users/davej/Code/filsnap/node_modules/@metamask/snaps-cli/dist/cmds/manifest/manifestHandler.js',
    '/mnt/c/Users/davej/Code/filsnap/node_modules/@metamask/snaps-cli/dist/cmds/build/buildHandler.js',
    '/mnt/c/Users/davej/Code/filsnap/node_modules/@metamask/snaps-cli/dist/cmds/build/index.js',
    '/mnt/c/Users/davej/Code/filsnap/node_modules/@metamask/snaps-cli/dist/cmds/index.js',
    '/mnt/c/Users/davej/Code/filsnap/node_modules/@metamask/snaps-cli/dist/main.js'
  ]
}

Node.js v19.0.0

Seemed to be an issue with deps, blew away repo and recloned and it now works in wsl. Closing