Orbit-db: Can't find variable: regeneratorRuntime

Created on 27 Jun 2018  ·  10Comments  ·  Source: orbitdb/orbit-db

I using Parcel and Orbit-DB. and then Error!

ReferenceError: Can't find variable: regeneratorRuntime

sample Repository.
https://github.com/Nipol/Parcel-orbitdb

help me!

question

Most helpful comment

@tyvdh Thanks! I added babel according to your advice.

All 10 comments

Thanks a ton for setting up a sample repository for this! It'll make it easier to diagnose. We'll get to this when we are able to.

Hit this too trying to run on a DigitalOcean Ubuntu machine

Fixed by adding import 'babel-polyfill'; to the very top of the chain

@tyvdh Thanks! I added babel according to your advice.

Thanks for helping out, @tyvdh!

Actually, @tyvdh - were you also using Parcel? Or was this more general? If so, we should add your fix to the documentation.

General. I don’t even know what Parcel is 😋

Hmm. Good to know! Sounds like it is just an orbit-db mixup when using babel, then. Should we add that import in a PR?

Idk. It works fine locally on my Mac. So it must be some issue with the OS. Just having a reference to “if you have this issue, try including this package” is likely sufficient.

Cool. In that case, let's just leave this issue here and if someone else finds that this is the solution, let us know and we'll add it to the docs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shd101wyy picture shd101wyy  ·  5Comments

crazyrabbitLTC picture crazyrabbitLTC  ·  6Comments

adamski picture adamski  ·  5Comments

MirceaKitsune picture MirceaKitsune  ·  3Comments

huhsame picture huhsame  ·  4Comments