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.

This loader should not expect `--watch` for the dev server

See original GitHub issue

In version 4.4.0 of the webpack cli you could pass a --watch flag like:

webpack serve --watch

This will make this loader rebuild files on changes.

In version 4.5 of the CLI passing that flag is an error:

https://github.com/webpack/webpack-cli/issues/2401

The watching should happen automatically. Which indeed happens with CSS and Typescript files. But not with Elm file.

The loader should watch file without the --watch flag.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
bjergacommented, Mar 3, 2021

@lukewestby Any update on when we can expect version 8.0.0 to be available on npm?

1reaction
sportocommented, Feb 23, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unknown option '--watch' in 4.5.0 · Issue #2401 - GitHub
This loader should not expect --watch for the dev server ... But I'm not familiar on how to build webpack loaders. I can...
Read more >
webpack-dev-server hot reload not working - Stack Overflow
And it builds and seems like it's working. localhost:8080 shows the expected result but hot-reload does just not work. When I change a...
Read more >
Watch and WatchOptions | webpack
Webpack can watch files and recompile whenever they change. This page explains how to enable this and a couple of tweaks you can...
Read more >
Solution for Webpack 5 Dev Server Not Live Reloading
Your browser can 't play this video. Learn more. Switch camera.
Read more >
How I solved and debugged my Webpack issue through trial ...
I know that webpack-dev-server is in maintenance now, so I tried webpack-serve, but it seemed like source maps do not work with it...
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