-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Using new.target
crashes the bundler
#22862
Comments
Spent hours debugging this and found the same exact issue. Were you able to solve this? |
No, I just used another library. Forking a library and replacing |
Thanks for your reply. Which library did you end up using? |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Environment
Run
react-native info
in your terminal and paste its contents here.Description
Using
new.target
causes developer bundler to fail.Unexpected token '.'
red screen is being shown.new.target
is part of ECMAScript 2015 (6th Edition, ECMA-262) standard according to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new.targetI am currently unable to use some libraries, like
whatwg-url
(while trying to work around #16434) because of this.Production version builds just fine but app crashes with same error, just presented as android app error.
This can be taken as duplicate of #8848, but I feel this was wronly closed. Babel does support this now: https://babeljs.io/docs/en/babel-plugin-transform-new-target however I feel this should/could be fixed without transpiling [?].
Reproducible Demo
or just import
whatwg-url
.The text was updated successfully, but these errors were encountered: