Closed albertossilva closed 9 months ago
Feels good to me. Maybe I can use it instead the original one.
Using your code with webpack, I catch the error Uncaught ReferenceError: regeneratorRuntime is not defined
. What's wrong?
Using your code with webpack, I catch the error
Uncaught ReferenceError: regeneratorRuntime is not defined
. What's wrong?
The problem is fixed by installing and importing regenerator-runtime.
So... @njzjz, should I install and add this dependency to my branch as well?
So... @njzjz, should I install and add this dependency to my branch as well?
I add the following before import jsnetworkx:
global.regeneratorRuntime = require("regenerator-runtime");
and it works.
So.. it makes sense to add on the documentation, that this library is required when used in webpack.
On Mon, Dec 9, 2019, 17:28 Jinzhe Zeng notifications@github.com wrote:
So... @njzjz https://github.com/njzjz, should I install and add this dependency to my branch as well?
I add the following before import jsnetworkx:
global.regeneratorRuntime = require("regenerator-runtime");
and it works.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fkling/JSNetworkX/pull/85?email_source=notifications&email_token=AAFPFYLG2XYGQMCOZLB5QSDQXZWZVA5CNFSM4IGAJMZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGJZBHQ#issuecomment-563318942, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFPFYI2C7OXLR56D35FZJDQXZWZVANCNFSM4IGAJMZA .
Won't do
The main reason for this upgrade is
npm audit
. Now it has 0 vulnerabilties