【发布时间】:2022-01-22 07:22:36
【问题描述】:
我已经按照这个有用的答案:how do you clone a git Gatsby project and run it locally? 在 git 上加载了一个演示 Gatsby 项目。
但我收到以下错误:
localhost/:1
GET http://localhost:9000/socket.io/socket.io.js net::ERR_ABORTED 404 (Not Found)
(index):5
GET http://localhost:9000/commons.js net::ERR_ABORTED 404 (Not Found)
这就是我所做的
git clone https://github.com/MunifTanjim/gatsby-theme-dox
cd gatsby-theme-dox
npm install #or yarn install
cd demo
gatsby develop #to build the site in development mode
gatsby build && gatsby serve #to build the site in production mode
然后我在demo/public 目录中添加了一个404.html 页面,因为我在gatsby serve 上遇到错误
但是现在,我得到的只是一个空白网站,上面显示了我上面指出的错误。
我是 Gatsby 的初学者,我想让这个演示在我的本地机器上运行。
谢谢
【问题讨论】:
标签: reactjs http-status-code-404 gatsby