I'm trying to build my Next.js project but it keeps giving me this error in the terminal:
Error: Build optimization failed: found page without a React Component as default export in pages/components/context/Context
That's the React context API file, there isn't supposed to be any default export there. Is this a bug or what?
1.4m articles
1.4m replys
5 comments
57.0k users