gatsby new tutorial-part-one https://github.com/gatsbyjs/gatsby-starter-hello-world
cd tutorial-part-one && gatsby develop
index.js
in src/pages/
and save the file. src/pages/
のindex.js
を編集し、ファイルを保存します。Gatsby's development server should hot reload in the browser and reflect changes made in src/pages/index.js
. Gatsbyの開発サーバーは、ブラウザでホットリロードし、 src/pages/index.js
で行われた変更を反映する必要があります。 The view must be as below:ビューは次のようになっている必要があります。
No hot reloading in the browser.ブラウザでのホットリロードはありません。
It works for me when I start the server with gatsby develop --host localhost
. gatsby develop --host localhost
でサーバーを起動すると、うまくいきます。 This is either unexpected behavior or should be added to all tutorials that mention hot reloading with gatsby develop
.これは予期しない動作であるか、 gatsby develop
を使用したホットリロードについて言及しているすべてのチュートリアルに追加する必要があります。
@andreasgruenh gatsby develop --host localhost
を追加しても、開発サーバーはネットワークに公開されません。
Hi @andreasgruenh @gagan0723 please see https://github.com/gatsbyjs/gatsby/pull/2983#issuecomment -346126702 and https://github.com/gatsbyjs/gatsby/issues/2960#issuecomment -346130796 and more recent comments.こんにちは@ andreasgruenh @gagan0723https ://github.com/gatsbyjs/gatsby/pull/2983#issuecomment-346126702およびhttps://github.com/gatsbyjs/gatsby/issues/2960#issuecomment-346130796および最近のコメントを参照してください。 Looks like we should default to localhost
on Mac as well to avoid these.これらを回避するために、Macでもデフォルトでlocalhost
に設定する必要があるようです。 For local network testing on Mac can do -H [machine_name].local
, any of that help? Macでのローカルネットワークテストの場合、 -H [machine_name].local
を実行できますが、その助けはありますか?
最も参考になるコメント
It works for me when I start the server with
engatsby develop --host localhost
.gatsby develop --host localhost
でサーバーを起動すると、うまくいきます。 This is either unexpected behavior or should be added to all tutorials that mention hot reloading withgatsby develop
.これは予期しない動作であるか、gatsby develop
を使用したホットリロードについて言及しているすべてのチュートリアルに追加する必要があります。