我已经开始使用Gatsby JS,在使用的热重装组件中有一些非常奇怪的东西。如果您有任何机会实现组件的2级实现,即
/components
/Component
index.js
styles.css
似乎热重装不起作用...
我试图将组件展平为Components文件夹的直接子组件,并且它可以正常工作。有人遇到过这个问题吗?
盖茨比信息
System:
OS: macOS 10.14
CPU: (4) x64 Intel(R) Core(TM) i5-4288U CPU @ 2.60GHz
Shell: 5.3 - /bin/zsh
Binaries:
Node: 11.2.0 - /usr/local/bin/node
Yarn: 1.10.1 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Languages:
Python: 2.7.14 - /usr/local/bin/python
Browsers:
Chrome: 74.0.3729.169
Firefox: 67.0.1
Safari: 12.0
npmPackages:
gatsby: ^2.9.4 => 2.9.4
gatsby-background-image: ^0.7.1 => 0.7.1
gatsby-image: ^2.1.4 => 2.1.4
gatsby-plugin-manifest: ^2.1.1 => 2.1.1
gatsby-plugin-offline: ^2.1.3 => 2.1.3
gatsby-plugin-react-helmet: ^3.0.12 => 3.0.12
gatsby-plugin-sass: ^2.0.11 => 2.0.11
gatsby-plugin-sharp: ^2.1.5 => 2.1.5
gatsby-source-filesystem: ^2.0.39 => 2.0.39
gatsby-transformer-sharp: ^2.1.21 => 2.1.21
npmGlobalPackages:
gatsby-cli: 2.6.7
谢谢您的帮助。