Skip to content

Error: Command "yarn run build" exited with 1 #2 #167

Locked Answered by vitorlfaria
vitorlfaria asked this question in Help
Discussion options

You must be logged in to vote

Already found the answer: > Build optimization failed: found page without a React Component as default export in pages/photos/styled
in this project i have a page with dinamic name [id].js and the styled.js for this page. The problem was that the build was reading the styled as the page, so i moved the styled for the lib and it worked.

Replies: 0 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by vitorlfaria
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant