Hello Builder Community,
We are currently engaged in a project involving Builder.io and have recently downloaded the Next.js Shopify GitHub package from the official repository: Next.js Shopify GitHub Package. We meticulously followed all the provided instructions for integration.
However, we’ve hit a roadblock in the form of an unknown error message that seems to be related to handling an “Object,” specifically in dealing with the collection and product. The error message we are encountering is as follows:
⨯ Error: [object Object]
at getProperError (/Users/brandonpowell/Desktop/nextjs-shopify/node_modules/next/dist/lib/is-error.js:41:12)
at DevServer.renderToResponseImpl (/Users/brandonpowell/Desktop/nextjs-shopify/node_modules/next/dist/server/base-server.js:1903:53)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async DevServer.pipeImpl (/Users/brandonpowell/Desktop/nextjs-shopify/node_modules/next/dist/server/base-server.js:909:25)
at async NextNodeServer.handleCatchallRenderRequest (/Users/brandonpowell/Desktop/nextjs-shopify/node_modules/next/dist/server/next-server.js:266:17)
at async DevServer.handleRequestImpl (/Users/brandonpowell/Desktop/nextjs-shopify/node_modules/next/dist/server/base-server.js:805:17) {
page: '/collection/hydrogen'
}
⨯ Error: [object Object]
at getProperError (/Users/brandonpowell/Desktop/nextjs-shopify/node_modules/next/dist/lib/is-error.js:41:12)
at DevServer.renderToResponseImpl (/Users/brandonpowell/Desktop/nextjs-shopify/node_modules/next/dist/server/base-server.js:1903:53)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async DevServer.pipeImpl (/Users/brandonpowell/Desktop/nextjs-shopify/node_modules/next/dist/server/base-server.js:909:25)
at async NextNodeServer.handleCatchallRenderRequest (/Users/brandonpowell/Desktop/nextjs-shopify/node_modules/next/dist/server/next-server.js:266:17)
at async DevServer.handleRequestImpl (/Users/brandonpowell/Desktop/nextjs-shopify/node_modules/next/dist/server/base-server.js:805:17) {
page: '/product/the-3p-fulfilled-snowboard'
}
Unfortunately, this error message doesn’t provide sufficient details regarding the file where these issues are originating.
If you have experience working with Shopify and Builder.io, particularly in the realm of Shopify Headless Theme building, we would greatly appreciate your assistance. Our primary challenges lie in the generation of collections and product pages.
Any insights, suggestions, or guidance you can provide would be invaluable to us. Thank you in advance for your time and expertise.
Best regards,
Brandon Powell