This repository was archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Example: Exchange files in browser is broken - no ipfs
module #1424
Copy link
Copy link
Closed
Labels
P3Low: Not priority right nowLow: Not priority right nowexp/noviceSomeone with a little familiarity can pick upSomeone with a little familiarity can pick upkind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)
Description
- Version: c1ee247
Type: Bug
Severity: Medium
Description:
Following the installation and run instructions of that tutorial results in the following error
❯ npm run bundle
> exchange-files-browser@0.0.0 bundle /Users/pascalprecht/projects/ipfs/js-ipfs/examples/exchange-files-in-browser
> browserify public/app.js > public/bundle.js
Error: Cannot find module 'ipfs' from '/Users/pascalprecht/projects/ipfs/js-ipfs/examples/exchange-files-in-browser/public'
at /Users/pascalprecht/projects/ipfs/js-ipfs/examples/exchange-files-in-browser/node_modules/browser-resolve/node_modules/resolve/lib/async.js:46:17
at process (/Users/pascalprecht/projects/ipfs/js-ipfs/examples/exchange-files-in-browser/node_modules/browser-resolve/node_modules/resolve/lib/async.js:173:43)
at ondir (/Users/pascalprecht/projects/ipfs/js-ipfs/examples/exchange-files-in-browser/node_modules/browser-resolve/node_modules/resolve/lib/async.js:188:17)
at load (/Users/pascalprecht/projects/ipfs/js-ipfs/examples/exchange-files-in-browser/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
at onex (/Users/pascalprecht/projects/ipfs/js-ipfs/examples/exchange-files-in-browser/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
at /Users/pascalprecht/projects/ipfs/js-ipfs/examples/exchange-files-in-browser/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
at FSReqWrap.oncomplete (fs.js:158:21)
Looking at the installed node_modules, the ipfs
package is indeed missing.
Steps to reproduce the error:
$ npm install
$ npm run bundle
Metadata
Metadata
Assignees
Labels
P3Low: Not priority right nowLow: Not priority right nowexp/noviceSomeone with a little familiarity can pick upSomeone with a little familiarity can pick upkind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)