总是当我在gatsby develop
的盖茨比项目中保存.js文件时,侧被重建。现在从盖茨比3.0升级到4.0后,在相同的情况下不会重建。如何解决?
System:
OS: Linux 5.10 Ubuntu 20.04.3 LTS (Focal Fossa)
CPU: (12) x64 Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.12.0 - ~/.nvm/versions/node/v16.12.0/bin/node
npm: 8.1.0 - ~/.nvm/versions/node/v16.12.0/bin/npm
npmPackages:
gatsby: ^4.0.1 => 4.0.1
gatsby-plugin-image: ^2.0.0 => 2.0.0
gatsby-plugin-manifest: ^4.0.0 => 4.0.0
gatsby-plugin-mdx: ^3.0.0 => 3.0.0
gatsby-plugin-react-helmet: ^5.0.0 => 5.0.0
gatsby-plugin-sass: ^5.0.0 => 5.0.0
gatsby-plugin-sharp: ^4.0.0 => 4.0.0
gatsby-plugin-sitemap: ^5.0.0 => 5.0.0
gatsby-source-filesystem: ^4.0.0 => 4.0.0
gatsby-transformer-remark: ^5.0.0 => 5.0.0
gatsby-transformer-sharp: ^4.0.0 => 4.0.0
npmGlobalPackages:
gatsby: 4.0.1
在v4中仍然存在热加载和依赖跟踪。检查您要保存的文件是否没有导入到您的项目中?