Files
ObsidianJournal/Daily Notes/2024/08/2024-08-26 (Monday).md

5.1 KiB
Raw Blame History

Ezekiel Pierson on vacation.

Work

Continuing work no POC for pulling in product display content sections to builder.io via Celigo to display on new.logos.com PDPs in an accordion.

This is a helpful link for setting up debugging of a next.js app in Visual Studio Code: https://nextjs.org/docs/pages/building-your-application/configuring/debugging

See this error:

[BigCommerce] query ProductPageQuery - 204ms - complexity 2596
  Internal error: TypeError: Cannot read properties of undefined (reading '')
    at resolveClientReference (../node_modules/.pnpm/next@14.1.4_@babel+core@7.23.6_react-dom@18.3.1_react@18.3.1/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js:53:55)
    at resolveModule (../node_modules/.pnpm/next@14.1.4_@babel+core@7.23.6_react-dom@18.3.1_react@18.3.1/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js:1588:35)
    at processFullRow (../node_modules/.pnpm/next@14.1.4_@babel+core@7.23.6_react-dom@18.3.1_react@18.3.1/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js:1648:25)
    at processBinaryChunk (../node_modules/.pnpm/next@14.1.4_@babel+core@7.23.6_react-dom@18.3.1_react@18.3.1/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js:1751:21)
    at progress (../node_modules/.pnpm/next@14.1.4_@babel+core@7.23.6_react-dom@18.3.1_react@18.3.1/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js:1819:17)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processTimers (node:internal/timers:511:9)

Possibly the same problem: https://github.com/vercel/next.js/issues/53562

Adding --turbo to next dev in the package.json dev script caused this issue now

logos-catalyst-2:dev: [1] - Next.js package not found
logos-catalyst-2:dev: [1]     at withErrorCause (C:\Code\github\LogosBible\bigcommerce-catalyst\node_modules\.pnpm\next@14.1.4_@babel+core@7.23.6_react-dom@18.3.1_react@18.3.1\node_modules\next\dist\build\swc\index.js:409:19)
logos-catalyst-2:dev: [1]     at async EndpointImpl.writeToDisk (C:\Code\github\LogosBible\bigcommerce-catalyst\node_modules\.pnpm\next@14.1.4_@babel+core@7.23.6_react-dom@18.3.1_react@18.3.1\node_modules\next\dist\build\swc\index.js:590:20)
logos-catalyst-2:dev: [1]     at async processMiddleware (C:\Code\github\LogosBible\bigcommerce-catalyst\node_modules\.pnpm\next@14.1.4_@babel+core@7.23.6_react-dom@18.3.1_react@18.3.1\node_modules\next\dist\server\lib\router-utils\setup-dev-bundler.js:796:87)
logos-catalyst-2:dev: [1]     at async handleEntries (C:\Code\github\LogosBible\bigcommerce-catalyst\node_modules\.pnpm\next@14.1.4_@babel+core@7.23.6_react-dom@18.3.1_react@18.3.1\node_modules\next\dist\server\lib\router-utils\setup-dev-bundler.js:805:25) {
logos-catalyst-2:dev: [1]   [cause]: [Error: content is not available as task execution failed
logos-catalyst-2:dev: [1]
logos-catalyst-2:dev: [1]   Caused by:
logos-catalyst-2:dev: [1]   - Next.js package not found
logos-catalyst-2:dev: [1]
logos-catalyst-2:dev: [1]   Debug info:
logos-catalyst-2:dev: [1]   - Execution of get_written_endpoint_with_issues failed
logos-catalyst-2:dev: [1]   - Execution of <MiddlewareEndpoint as Endpoint>::write_to_disk failed
logos-catalyst-2:dev: [1]   - Execution of Project::emit_all_output_assets failed
logos-catalyst-2:dev: [1]   - Execution of VersionedContentMap::insert_output_assets failed
logos-catalyst-2:dev: [1]   - Execution of all_assets_from_entries failed
logos-catalyst-2:dev: [1]   - Execution of MiddlewareEndpoint::output_assets failed
logos-catalyst-2:dev: [1]   - Execution of MiddlewareEndpoint::edge_files failed
logos-catalyst-2:dev: [1]   - content is not available as task execution failed
logos-catalyst-2:dev: [1]   - Execution of wrap_edge_entry failed
logos-catalyst-2:dev: [1]   - Execution of get_middleware_module failed
logos-catalyst-2:dev: [1]   - Execution of file_content_rope failed
logos-catalyst-2:dev: [1]   - Execution of FileSystem::read failed
logos-catalyst-2:dev: [1]   - Execution of FileSystemPath::fs failed
logos-catalyst-2:dev: [1]   - Execution of FileSystemPath::join failed
logos-catalyst-2:dev: [1]   - Execution of get_next_package failed
logos-catalyst-2:dev: [1]   - Next.js package not found] {
logos-catalyst-2:dev: [1]     code: 'GenericFailure'
logos-catalyst-2:dev: [1]   }
logos-catalyst-2:dev: [1] }

This might help: https://github.com/vercel/next.js/discussions/55987

I removed export const runtime = 'edge'; from pages and it worked.

Got the celigo flow working, but not quite tweaked correctly yet. I don't think it's updating builder.io sections yet--just keeps creating duplicates.

Meetings

Commerce scrum

BEN scrum

PCI gap analysis interview

We are in the lowest requirement level (SAQ-A) except for how we take credit card numbers at conferences. We have good processes in place, but it puts us at level SAQ C-VT (virtual terminal).

BSG on-call retrospective

Royalty team check in