Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding defer: true in gatsby-node.js (DSG) throws Built Rendering Engines failed error #237

Open
shameer-rahman opened this issue Feb 17, 2023 · 0 comments

Comments

@shameer-rahman
Copy link

shameer-rahman commented Feb 17, 2023

i'm trying to enable DSG option by adding defer: true but i'm getting Built Rendering Engines failed error, the build works fine when i set defer: false, below is the gatsby-node.js code

createPage({
        path: `/blog/${post.slug}/`,
        component: blogPost,
        context: {
          slug: post.slug,
          previousPostSlug,
          nextPostSlug,
        },
        defer: true
 })

below is the exact error message i'm getting

failed Validating Rendering Engines - 2.750s
 ERROR #98001  ENGINE.VALIDATION
Built Rendering Engines failed validation failed validation.
Please open an issue with a reproduction at https://gatsby.dev/new-issue for more help.
  Error: Worker exited before finishing task
  - index.js:205 ChildProcess.<anonymous>
    [contentful-starter-blog]/[gatsby-worker]/dist/index.js:205:41

here is my gatsby info

System:
OS: macOS
Binaries:
Node: 18.13.0 - ~/.nvm/versions/node/v18.13.0/bin/node
npm: 8.19.3 - ~/.nvm/versions/node/v18.13.0/bin/npm
Browsers:
Chrome: 105.0.5195.102
Safari: 16.0
npmPackages:
gatsby: ^5.5.0 => 5.5.0
gatsby-plugin-image: ^3.5.0 => 3.5.0
gatsby-plugin-react-helmet: ^6.5.0 => 6.5.0
gatsby-plugin-sharp: ^5.5.0 => 5.5.0
gatsby-provision-contentful: ^0.0.5 => 0.0.5
gatsby-source-contentful: ^8.5.0 => 8.5.0
gatsby-transformer-sharp: ^5.5.0 => 5.5.0
npmGlobalPackages:
gatsby-cli: 5.5.0

@shameer-rahman shameer-rahman changed the title adding defer: true in gatsby-node.js (DSG) throws error Built Rendering Engines failed adding defer: true in gatsby-node.js (DSG) throws Built Rendering Engines failed error Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant