-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Incorrect name of async function
after build.
#5663
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
Comments
The problem also happend with static function of class, neither async or normal: class Test {
static fn() {}
}
console.log(Test.fn.name); It always print |
I found that after build it would generate some codes like |
We are seeing something similar, dev builds work fine, but production builds fail on Firefox, our promise catch is never being called. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue. |
Is this a bug report?
Yes
Did you try recovering your dependencies?
I generated a new project to test it.
Environment
While, the command

create-react-app --info
seems not work...(paste the output of the command here)
So let me paste my
package.json
instead (just create a new project use npx create-react-app):Steps to Reproduce
index.js
to reproduce it.index.js
:development
environment (npm run start
), what the browser terminal print:seems all right.
production
mode (npm run build
), the problem appeared:Maybe this problem is a bug of webpack, but due to the
create-react-app
not allow us to build the project in development mode, or build without minify, I found hard to further locate the problem .The text was updated successfully, but these errors were encountered: