Version 7.01 doesn't observe source code changes anymore
See original GitHub issueIn 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:
- Created 3 years ago
- Reactions:15
- Comments:14 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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.