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

Cannot include ipfs-api and ipfs-merkle-dag in the same page #366

Closed
nycoliver opened this issue Sep 5, 2016 · 7 comments
Closed

Cannot include ipfs-api and ipfs-merkle-dag in the same page #366

nycoliver opened this issue Sep 5, 2016 · 7 comments
Labels

Comments

@nycoliver
Copy link

nycoliver commented Sep 5, 2016

Unable to use both scripts in the same page. I assume this also affects other js-ipfs-* modules.

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Test</title>
    <script src="https://npmcdn.com/ipfs-api/dist/index.min.js"></script>
    <script src="https://npmcdn.com/ipfs-merkle-dag/dist/index.min.js"></script>
  </head>
</html>

throws Error: only one instance of babel-polyfill is allowed

@dignifiedquire
Copy link
Contributor

Yes that is a current issue, we are working to resolve it here: ipfs/aegir#36 and ipfs/js-ipfs#431

The gist of it, is that we have a version without babel-polyfill but that creates other problems currently, which we are still looking into fixing before we can do a release without it.

@lidel
Copy link
Contributor

lidel commented Oct 3, 2016

I have a similar problem with is-ipfs and js-ipfs-api (ipfs/ipfs-companion#152)
Is there any workaround other than manually building custom browserified artifact that includes both libraries?

@aakilfernandes
Copy link

+1. having this problem trying to include both js-ipfs-api and multihashing

@dignifiedquire
Copy link
Contributor

This will be fixed once #390 is merged and released

@dignifiedquire
Copy link
Contributor

No more transpilation in the latest releases. So you can go a head and use them together :) Please not that ipfs-merkle-dag was deprecated in favor of https://github.com/ipld/js-ipld-dag-pb/

@dignifiedquire dignifiedquire removed their assignment Nov 8, 2016
@daviddias
Copy link
Contributor

🎉

@lidel
Copy link
Contributor

lidel commented Nov 8, 2016

Thanks, works fine now! 🚀

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

No branches or pull requests

5 participants