'Nextjs build is faild [duplicate]

pls help me

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



Solution 1:[1]

Go to WithTransition.js

Make sure you defined the displayName before exporting

WithTransition.displayName = 'WithTransition';

export default WithTransition;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 rmths01