question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: No hot reload when serving with netlify

See original GitHub issue

Which Remix packages are impacted?

  • remix (Remix core)
  • create-remix
  • @remix-run/architect
  • @remix-run/cloudflare-workers
  • @remix-run/dev
  • @remix-run/express
  • @remix-run/netlify
  • @remix-run/node
  • @remix-run/react
  • @remix-run/serve
  • @remix-run/server-runtime
  • @remix-run/vercel

What version of Remix are you using?

1.0.6

Steps to Reproduce

Init a project and select Netlify as the deployment

Expected Behavior

Start the Netlify dev server and remix and have the page reload on file saves

Actual Behavior

Browser has to be manually refreshed to see changes

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mcanshcommented, Dec 8, 2021

looks like a build cache issue has crept its way in, I’ll take a look. Sorry folks 🙏

0reactions
alanjhughescommented, Dec 16, 2021

Occasionally you will get this when it reloads

SyntaxError: /Users/alanjhughes/Developer/Projects/reppy-remix/netlify/functions/server/build/assets.json: Unexpected end of JSON input
  parse (<anonymous>)
  Object.Module._extensions..json (node:internal/modules/cjs/loader:1167:22)
  Module.load (node:internal/modules/cjs/loader:981:32)
  Function.Module._load (node:internal/modules/cjs/loader:822:12)
  Module.require (node:internal/modules/cjs/loader:1005:19)
  require (node:internal/modules/cjs/helpers:102:18)
  Object.<anonymous> (/Users/alanjhughes/Developer/Projects/reppy-remix/netlify/functions/server/build/index.js:445:32)
  Module._compile (node:internal/modules/cjs/loader:1101:14)
  Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
  Module.load (node:internal/modules/cjs/loader:981:32)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Netlify dev --live is not hot reloading when I change code
I can edit anything in Sanity studio and the changes show up instantly. But when I change code, or styles, it doesn't hot-reload....
Read more >
netlify dev --live not hot-reloading · Issue #2509 - GitHub
Describe the bug netlify dev --live does create a tunnel, but does not hot reload To Reproduce npx create-react-app live-test cd live-test ...
Read more >
How to hot reload on netlify? - node.js - Stack Overflow
I have my node setup on a server because I don't want to install node and node packages on my local machine. When...
Read more >
Guide to Deploying a React App to Netlify - Stack Abuse
In this guide, learn how to deploy a React JavaScript application to a live Netlify server, via the drag and drop interface, Netlify...
Read more >
Build a Secure Blog with Gatsby, React, and Netlify
Restart your app using Ctrl+C and npm start . You'll now be able to edit content at http://localhost:8000/admin/ . Login to Admin Section....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found