Skip to content
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 opened this issue Jan 10, 2019 · 2 comments · Fixed by #931
Closed

cannot be imported by Meteor 1.8+ #924

yuwiggin opened this issue Jan 10, 2019 · 2 comments · Fixed by #931

Comments

@yuwiggin
Copy link

  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?

@yuwiggin
Copy link
Author

this is a reference from Meteor

@alanshaw
Copy link
Contributor

@yuwiggin can you verify with the latest version and close your issue on the meteor repo if resolved?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants