Skip to content

Conversation

@asterite
Copy link
Contributor

@asterite asterite commented Aug 9, 2019

This seems to solve the error I was getting on the JS console but now:

  • it says "Jetpack reloaded!" but the UI doesn't seem to get updated (I'm trying modifying a string literal)
  • jetpack will sometimes fail with:
    some_file.js.tmp: renameFile:renamePath:rename: does not exist (No such file or directory)
    

I'm almost sure getting hot reload to work is almost there.

src/HotReload.hs Outdated
, "var myDisposeCallback = function() {};"
, "// simulate the HMR api exposed by webpack"
, "var moduleHot = {"
, "var module = {"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm worried that something else is called module and we overwrite that.

Copy link
Contributor Author

@asterite asterite Aug 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stoeffel Great idea! I tried using moduleHot as before and now it seems to work! Well, it automatically reloads the page. I still get the renameFile error... but it's a big progress!

@rekahsoft rekahsoft added the hold label Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants