when running npm run build .I got an error: ./pages/include/WithTransition.js 4:9 Error: Component definition is missing display name react/display-name
Asked
Active
Viewed 34 times
-2

jonrsharpe
- 115,751
- 26
- 228
- 437

NgocMinhIT
- 3
- 3
-
And do you think that component _does_ have a display name? Did you read https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/display-name.md? – jonrsharpe May 06 '22 at 15:40
1 Answers
0
Go to WithTransition.js
Make sure you defined the displayName before exporting
WithTransition.displayName = 'WithTransition';
export default WithTransition;

rmths01
- 89
- 1
- 10