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

examples/transfer-files doesn't work #905

@jmc265

Description

@jmc265

The transfer-files example fails in Chrome when you click the Start button with this error:

Uncaught TypeError: createServer is not a function
    at module.exports (ipfs.js:86708)
    at WebSockets.createListener (ipfs.js:86675)
    at ipfs.js:83956
    at ipfs.js:35190
    at eachOfArrayLike (ipfs.js:25480)
    at exports.default (ipfs.js:25424)
    at _parallel (ipfs.js:35189)
    at parallelLimit (ipfs.js:10477)
    at Object.listen (ipfs.js:83976)
    at each (ipfs.js:83605)

There are the steps to reproduce:

git clone https://github.com/ipfs/js-ipfs.git js-ipfs
cd js-ipfs
npm install
npm run build
cd examples/transfer-files/
npm install
npm start
In browser navigate to http://127.0.0.1:12345/
In web app, click 'Start IPFS' button
Observe error in web console

Metadata

Metadata

Assignees

Labels

kind/bugA bug in existing code (including security flaws)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions