Error: Command "yarn run build" exited with 1 #2 #167
-
I'm trying to deploy a new version of my aplication, that was deploying well before. Build logs 08:18:03.691 | Cloning github.com/vitorlfaria/galeria-de-fotos (Branch: main, Commit: 2a33774) |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 1 reply
-
Already found the answer: > Build optimization failed: found page without a React Component as default export in pages/photos/styled |
Beta Was this translation helpful? Give feedback.
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 thestyled.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.