-
Notifications
You must be signed in to change notification settings - Fork 455
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
Bug in a dependency: timeout-abort-controller #573
Comments
My create-react-app setup uses ES5 as target and as the author of the timeout-abort-controller package @jacobheun stated it will cause webpack to use a "_super.call(this) type of call" when transpiling the ES6 classes to ES5. I am not closing this issue since others may have this same problem and I will let the maintainers of libp2p decide what to do with this issue. I will use ES6 as target but others may not have that option |
@latenssi are you using out of the box It looks like babel 7+ is supposed to include https://github.com/WebReflection/babel-plugin-transform-builtin-classes by default which should fix this, if not and this is out of the box create-react-app, it will probably be best to update |
I am using the latest version of I encourage anyone hitting this issue to test out the plugin @jacobheun suggested but I must move on as my situation allows me to stick to plain ES6 classes. @jacobheun I second you in that the best way to handle the issue is to update |
timeout-abort-controller is no longer a dependency |
Type: Bug
Severity: High
Description:
Bug in timeout-abort-controller package renders libp2p unusable in create-react-app build apps
I have created an issue in the repo of the package here: jacobheun/timeout-abort-controller#2
Steps to reproduce the error:
Build a create-react-app based app (npm run build), try to connect to a peer in the app via webrtc-star and you should get this error message in the debug logs:
libp2p:error could not connect to discovered peer TypeError: Failed to construct 'AbortController': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
The text was updated successfully, but these errors were encountered: