Getting stuck on Initializing Plasmic issue on a new project Github publish

I’m getting an Initializing Plasmic app issue on a new project build: uZdx5VoAFruPGvhhfwUzcx

looks like this is related to Gatsby 5 requiring node 18… We’ve updated our github action to use node18; could you try this again?

Thanks @chungwu the build process now moves past Initializing Plasmic app, but then 4 or 5 steps disappear afterwards and it never actually builds

https://vimeo.com/771074736/56e425c0c5

Ah, yeah… Github no longer allows us to create github pages programmatically :confused: https://github.com/orgs/community/discussions/35595

You can either publish your site to be hosted by Plasmic, or you’ll have to wire it up yourself for now… Can help with instructions if you still want to use Github Pages!

I’ll just host this on Netlify or Plasmic, how do I remove GH pages?

Strange as this is a private repo and I don’t ever remember asking to use GH pages

oh… wait is this a new repo that you created recently or an existing one? does GH pages already work on this site?

its a fairly new private repo, I never use github pages, I usually host on Netlify. its failed to build from day 1, so not sure

repo was created through Plasmic

Ah OK then I think you can just continue using Netlify :blush:

Ok i’ve tried to build this directly in Netlify and I am getting errors.

error There was an error in your GraphQL query:
11:56:15 AM: context.nodeModel.getAllNodes is not a function
11:56:15 AM:   1 | query pageOptbuildreposrctemplatesdefaultPlasmicPageJsx851316367($path: String) {
11:56:15 AM: > 2 |   plasmicComponents(componentNames: [$path])
11:56:15 AM:     |   ^
11:56:15 AM:   3 |   plasmicOptions
11:56:15 AM:   4 | }
11:56:15 AM: File path: /opt/build/repo/src/templates/defaultPlasmicPage.jsx
11:56:15 AM: Url path: /
11:56:15 AM: Plugin: none
11:56:15 AM: 
11:56:15 AM: 
11:56:15 AM:   TypeError: context.nodeModel.getAllNodes is not a function
11:56:15 AM:   
11:56:15 AM:   - gatsby-node.ts:157 Object.resolve
11:56:15 AM:     [repo]/[@plasmicapp]/loader-gatsby/src/gatsby-node.ts:157:48
11:56:15 AM:   
11:56:15 AM:   - schema.js:926 resolver
11:56:15 AM:     [repo]/[gatsby]/src/schema/schema.js:926:31
11:56:15 AM:   
11:56:15 AM:   - resolvers.ts:815 wrappedTracingResolver
11:56:15 AM:     [repo]/[gatsby]/src/schema/resolvers.ts:815:20
11:56:15 AM:   
11:56:15 AM:   - graphql-runner.ts:255 GraphQLRunner.query
11:56:15 AM:     [repo]/[gatsby]/src/query/graphql-runner.ts:255:20
11:56:15 AM:   
11:56:15 AM:   - query-runner.ts:113 startQueryJob
11:56:15 AM:     [repo]/[gatsby]/src/query/query-runner.ts:113:6
11:56:15 AM:   
11:56:15 AM:   - query-runner.ts:145 queryRunner
11:56:15 AM:     [repo]/[gatsby]/src/query/query-runner.ts:145:20
11:56:15 AM:   
11:56:15 AM:   - index.ts:110 worker
11:56:15 AM:     [repo]/[gatsby]/src/query/index.ts:110:5
11:56:15 AM:   
11:56:15 AM:   - queue.js:110 Object.push
11:56:15 AM:     [repo]/[fastq]/queue.js:110:14
11:56:15 AM:   
11:56:15 AM:   - index.ts:159 forEach
11:56:15 AM:     [repo]/[gatsby]/src/query/index.ts:159:17
11:56:17 AM: Creating deploy upload records
11:56:15 AM:   
11:56:15 AM:   - Array.forEach
11:56:15 AM:   
11:56:17 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (<https://ntl.fyi/exit-code-2>)
11:56:15 AM:   - index.ts:158 
11:56:15 AM:     [repo]/[gatsby]/src/query/index.ts:158:14
11:56:15 AM:   
11:56:15 AM:   - new Promise
11:56:15 AM:   
11:56:15 AM: 
11:56:15 AM: error An error occurred during parallel query running.
11:56:15 AM: Go here for troubleshooting tips: <https://gatsby.dev/pqr-feedback>
11:56:15 AM: 
11:56:15 AM: 
11:56:15 AM:   Error: Worker exited before finishing task
11:56:15 AM:   
11:56:15 AM:   - index.js:117 ChildProcess.<anonymous>
11:56:15 AM:     [repo]/[gatsby-worker]/dist/index.js:117:45
11:56:15 AM:   
11:56:15 AM:   - node:events:527 ChildProcess.emit
11:56:15 AM:     node:events:527:28
11:56:15 AM:   
11:56:15 AM:   - child_process:291 Process.ChildProcess._handle.onexit
11:56:15 AM:     node:internal/child_process:291:12
11:56:15 AM:   
11:56:15 AM: 
11:56:15 AM: not finished run queries in workers - 0.103s
11:56:15 AM: "11:56:15 AM: "───────────────────────────────────────────────────────────────
11:56:15 AM:   "build.command" failed                                        
11:56:15 AM: ────────────────────────────────────────────────────────────────

Just to confirm, we are not using GH pages at all. I still find Plasmic to skip the build within the app. So I did the build directly on Netlify

I’ve tried to update on local to Gatsby 5.0.1 and Plasmic to 0.186. Netlify is setup to build, but we get a GraphQL error, which is different to the local error which is Objects are not valid as a React child (found: Error: ENOENT%).
If you meant to render a collection of children, use an array instead.

https://reactjs.org/docs/error-decoder.html/?invariant=31&args[]=Error%3A%20ENOENT%25

I think I see the issue, fixing…

Could you try upgrading to the latest loader-gatsby (@plasmicapp/loader-gatsby@1.0.188)?