Skip to content

fix: ensure ipfs browser bundle is used #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2019

Conversation

olizilla
Copy link
Collaborator

@olizilla olizilla commented Mar 5, 2019

  • alias the ipfs dependency to the pre-built bundle.
  • update link to explore.ipld.io
  • update ipfs to latest release

This ensures the browser friendly ipfs bundle is used. Before this
PR we were seeing a bunch of errors when IPFS tried to init, which
are caused by trying to get webpack to bundle the node build and
not substituting all the browser friendly deps correctly. Luckily,
this work is done for us in the ipfs dist build, so just use that.

screenshot 2019-03-05 at 22 55 55

fixes #164
fixes #125

License: MIT
Signed-off-by: Oli Evans [email protected]

- alias the ipfs dependency to the pre-built bundle.
- update link to explore.ipld.io
- update ipfs to latest release

This ensures the browser friendly ipfs bundle is used. Before this
PR we were seeing a bunch of errors when IPFS tried to init, which
are caused by trying to get webpack to bundle the node build and
not substituting all the browser friendly deps correctly. Luckily,
this work is done for us in the ipfs dist build, so just use that.

fixes #164
fixes #125

License: MIT
Signed-off-by: Oli Evans <[email protected]>
@olizilla olizilla requested a review from mikeal March 5, 2019 22:56
@terichadbourne
Copy link
Member

Thank you so much, @olizilla!

I'm testing on localhost. When I submit what I believe to be correct answers for some of the easier exercises, I'm getting this in the console:

image

The error is coming from this function:

image

I don't receive any success or error message from the validator or any clues shown to the user.

Is it immediately obvious to @mikeal or @olizilla what the issue might be? Are you able to reproduce the issue?

@olizilla
Copy link
Collaborator Author

olizilla commented Mar 5, 2019

@terichadbourne Can you try running npm install and try again?

@terichadbourne
Copy link
Member

Ha, yep. I forget that every time. 🤦‍♀️

No more console errors and I'm seeing fast load times in IPLD Explorer. 🎉

I'm good with this as soon as @mikeal is. Thanks, @olizilla!

@olizilla
Copy link
Collaborator Author

olizilla commented Mar 6, 2019

@hugomrdias @alanshaw

@terichadbourne
Copy link
Member

see also "vue-cli generated project emits errors together with js-ipfs": ipfs/js-ipfs#1875

@terichadbourne
Copy link
Member

@olizilla Based on our convo on the GUI/in-browser call the other day, is your inclination that we should accept this PR using your current webpack solution and put a note in the issue Alan mentioned (ipfs/js-ipfs#1875) so someone there can let us know when there's a better fix available? Or did it sound like there's something we should be changing immediately?

@olizilla
Copy link
Collaborator Author

olizilla commented Mar 7, 2019

Yep, I would merge this as it fixes the issue, and add a note to that issue.

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

Successfully merging this pull request may close these issues.

Bug: IPLD Explorer not loading IPLD Explorer not loading from Blog - Lesson 6
2 participants