Closed
Description
Preliminary Checks
- This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues
- This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
Description
Gatsby does not update a page with Incremental build when a change in a component imported with React.lazy
AND a gatsby-config
file exists.
The first video displays when a gatsby-config
exist and therefore it's not working.
In the second video, the gatsby-config
file is deleted and the change in the React.lazy
loaded component is detected and the page updated.
Screen.Recording.2023-02-27.at.14.28.31.mp4
Screen.Recording.2023-02-27.at.14.30.45.mp4
Reproduction Link
Steps to Reproduce
- Download the repo
- Run
npx gatsby build --log-pages
.
Updated page: /
is displayed. - Make a change in the component
src/MyComponent.js
- Run
npx gatsby build --log-pages
.
There are no new or changed html files to build.
is displayed.
Expected Result
I expect the page /
to have been updated and the console output to be Updated page: /
Actual Result
The page /
has not been updated and the console output is There are no new or changed html files to build.
Environment
System:
OS: macOS 13.2
CPU: (10) arm64 Apple M1 Pro
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.14.2 - ~/.nvm/versions/node/v18.14.2/bin/node
npm: 9.5.0 - ~/.nvm/versions/node/v18.14.2/bin/npm
Browsers:
Safari: 16.3
npmPackages:
gatsby: ^5.7.0 => 5.7.0
Config Flags
No response