You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Describe the bug
console the function.constructor.name
the GeneratorFunction with default value as params, eg:
console.log('ddd', function* test(d = {}){yield console.log('ddddd')})
in react-scripts4.x app,console:GeneratorFunction
in react-scripts5.0.1 app ,console:Function
the GeneratorFuntion without default value as params, eg:
console.log('ddd', function* test(){yield console.log('ddddd')})
in react-scripts4.x and 5.0.1 app ,console:GeneratorFunction
(Write your answer here.)
Did you try recovering your dependencies?
(Write your answer here.)
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
"dependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.0.0",
"@testing-library/user-event": "^13.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.0"
},
(paste the output of the command here.)
Steps to reproduce
(Write your steps here:)
Expected behavior
(Write what you thought would happen.)
Actual behavior
(Write what happened. Please add screenshots!)
Reproducible demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
Beta Was this translation helpful? Give feedback.
All reactions