Gatsby: Warning: You cannot change <Router history> in browser.js/HMR stops working when changing layout, template or page

Created on 30 Aug 2017  Â·  5Comments  Â·  Source: gatsbyjs/gatsby

When picking up work on #1765 (www) today I merged the current master. After that I started noticing that in gatsby develop whenever I changed a layout, template or page, HMR stopped working (until I reload the page). Console says Warning: You cannot change <Router history>:

image

I can reproduce this in www of the current master, too (Gatsby v1.9.10). Also tried v1.9.14 and run into the same. Searched and found #1913 and #1936 … confused now! ;-) ¯\_(ツ)_/¯

Most helpful comment

I am also having the same issue.

All 5 comments

Seems I'm not the only one seeing this. @3axap4eHko not sure if this is related to your PR, but maybe you can take a look?

I am also having the same issue.

+1

@KyleAMathews Thank you! 🎉

Sorry for the slow fix here — gatsby 1.9.31 has the fix from https://github.com/gatsbyjs/gatsby/pull/2110

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KyleAMathews picture KyleAMathews  Â·  3Comments

brandonmp picture brandonmp  Â·  3Comments

benstr picture benstr  Â·  3Comments

magicly picture magicly  Â·  3Comments

theduke picture theduke  Â·  3Comments