Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

cannot be imported by Meteor 1.8+ #924

Closed
@yuwiggin

Description

@yuwiggin
  1. install ipfs-http-client package

meteor npm i ipfs-http-client --save

  1. Add ipfs.js file with the following
const ipfsClient = require('ipfs-http-client')
const ipfs = ipfsClient('localhost', '5001', { protocol: 'http' })
  1. Then run Meteor,

meteor

open http://localhost:3000

An error occured in the browser's console

Uncaught TypeError: ipfsClient is not a function at ipfs.js

Meteor Version: Meteor 1.8.0, 1.8.0.2,
OS: macOS Sierra V10.12.6,
ipfs-http-client: 28.1.1,

What's wrong?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions