尝试开发盖茨比并遇到错误

时间:2020-08-03 06:53:09

标签: reactjs gatsby development-environment

我曾经使用过gatsby,它会发展得很好,但是最近我的react应用程序和gatsby无法正常工作。通过向.env文件中添加一行代码,我已经能够跳过react app中的错误,但是对于gatsby,当在终端中键入gatsby development时,我得到以下输出:

Note that the development build is not optimized.
To create a production build, use gatsby build
⠀
success Building development bundle - 3.763s
success Re-building development bundle - 0.054s

 ERROR 

Source and destination must not be the same.



  Error: Source and destination must not be the same.
  
  - stat.js:80 
    [gatsby-tutorial]/[fs-extra]/lib/util/stat.js:80:17
  
  - stat.js:38 
    [gatsby-tutorial]/[fs-extra]/lib/util/stat.js:38:16
  
  - polyfills.js:295 callback
    [gatsby-tutorial]/[graceful-fs]/polyfills.js:295:20

当我在项目目录中运行gatsby info --clipboard时,我得到:

System:
    OS: macOS 10.15.3
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.18.1 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.7 - /usr/local/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 84.0.4147.105
    Firefox: 78.0.2
    Safari: 13.0.5
  npmPackages:
    gatsby: ^2.23.12 => 2.23.12
  npmGlobalPackages:
    gatsby-cli: 2.12.68

我正在用Visual Studio代码运行gatsby开发,因此我在正确的项目目录中,但是对于为什么会收到此错误,我仍然感到困惑。如果可以帮助任何人找出gatsby的问题,我可以添加react app错误。

0 个答案:

没有答案