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.

Version 7.01 doesn't observe source code changes anymore

See original GitHub issue

In version 6.01 making a change in the source will cause webpack to re-compile the changes. Nothing happens in version 7.01 now. The only way to get the changes is by kiling the dev server and running again. I’m using Ubuntu 20.04

To replicate

  • Create a basic project e.g. the example folder in the repo. Example: https://github.com/sporto/elm-webpack-7-repro

  • Install version 6.01

  • Run npm run dev

  • Open the browser, see Hello ...

  • Make a change in the Content.elm, observe the change in the browser

  • Then repeat using version 7.01

  • Observe how the page doesn’t change when changing the code

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:15
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
sportocommented, Feb 3, 2021

As of version 4.5.0 of the webpack cli you cannot pass --watch anymore to the dev server. ie. webpack serve --watch will throw an error.

Without --watch the loader doesn’t recompile changes. So atm this loader seems to be incompatible with webpack-cli 4.5. Unless I’m missing some options that need to be passed somewhere else.

https://github.com/elm-community/elm-webpack-loader/issues/198

1reaction
DawidJanczakcommented, Jan 28, 2021

This bug is still a thing, but it only occurs for files that are imported from other files. Entry points load just fine, that’s why it’s working in that example repo @simonh1000 - there’s only one Elm file there. Adding --watch option to webpack does work, however it recompiles all the files instead of just the one that’s been changed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why doesn't git recognize that my file has been changed ...
To check about your change on repository use always git status that show all untracked and changed files. Because git diff show only...
Read more >
Error upgading cert-manager to v1.7 · Issue #4900
The issue is that now I'm running a newer version of cert-manager and it is somehow still encountering v1alpha2 resources in my cluster...
Read more >
Compose Runtime
Compose is combination of 7 Maven Group Ids within androidx . Each Group contains a targeted subset of functionality, each with it's own...
Read more >
PHP 7 ChangeLog
Core: No source changes to this release. This update allows for re-building the Windows binaries against upgraded dependencies which have received security ...
Read more >
2.2 Git Basics - Recording Changes to the Repository
This means you have a clean working directory; in other words, none of your tracked files are modified. Git also doesn't see any...
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