-
Notifications
You must be signed in to change notification settings - Fork 24
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
Unable to use Deferred Static Generation with the Gatsby Source Kontent Plugin #197
Comments
A member of the Gatsby team mentioned the fix may be similar to this issue on gatsby-plugin-loadable-components-ssr: graysonhicks/gatsby-plugin-loadable-components-ssr#46 |
The cause is similar
To identify a file, I am using I have placed the debugger to the file loading place in I have reached out to Gatsby devs to get the best practice for the fix. |
Gatsby did not respond yet, but I have tried to rewrite templated files to TS modules and tested it and it looks it works fine. I have also tried it on your repo and seems fine. https://www.npmjs.com/package/@kentico/gatsby-source-kontent/v/8.0.0-beta.2 If it is fixed, please close this issue. |
The issue has been resolved and released version 8.0.0-beta.2. Gatsby team confirmed the fix was correct. It has been also published on the migration guides: |
Brief bug description
Gatsby builds using the new defer argument for the createPage action in gatsby-node.js to exclude the page from the build step and instead generate it during the first HTTP request result in an error during the build process.
During the Validating Rendering Engines portion of the build process, the following error is thrown:
Repro steps
defer
argument to acreatePage
action ingatsby-node.js
npm run build
Expected behavior
The site should build. Remove the defer argument from the
createPage
action then runnpm run build
and the site will build as expected.Test environment
Additional context
A repo with reproducible steps in the README is available here: https://github.com/bwlng/gatsby-kontent-dsg-issue
The text was updated successfully, but these errors were encountered: