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]: Live reload does not work with Netlify starter

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.4

Steps to Reproduce

Create the app with npx create-remix@latest and select Netlify.

Expected Behavior

Content should be changed

Actual Behavior

The content has not changed

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
kalijonncommented, Nov 25, 2021

while creating the WebSocket Server, remix reads devServerPort from remix.config.js in the root directory. By default it’s 8888 while the websocket is trying to connect to 8002. By changing devServerPort on remix.config.js to 8002, LiveReload works.

My first open source contribution! yay!

P.S: I looked at CONTRIBUTING.md but looks like the Contributor License Agreement is not ready yet.

Regards, Kali.

2reactions
bushbladecommented, Nov 29, 2021

Came here to post the same bug, can confirm that @kalijonn’s solution works for me.

module.exports = {
  appDirectory: 'app',
  browserBuildDirectory: 'public/build',
  publicPath: '/build/',
  serverBuildDirectory: 'netlify/functions/server/build',
  devServerPort: 8002, // should not be 8888
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Remix Netlify starter is not live reloading. #3394 - GitHub
Natively it's not working but there is a workaround. Go to your remix.config.js file and export devServerPort: 8002 from the module. And then ......
Read more >
Netlify dev --live is not hot reloading when I change code
When I run “netlify dev --live” I get the message “No dev server detected, using simple static server” … and no live-reloading on...
Read more >
How can I enable hot-reloading/auto-rebuilding nextjs app ...
1. Try running `netlify dev` in a project (possibly in a Vite or CRA project) 1. See that the dev server never starts....
Read more >
[Support Guide] Frequently encountered problems during builds
In case your build fails on Netlify, first make sure it builds locally in your own development environment. This is a prerequisite to...
Read more >
How to hot reload a simple one page (static) website with no ...
I've been using Netlify CLI/ Dev for some time in a project without any framework (html,js,css) and using the default static server from ......
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