-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 7.01 doesn't observe source code changes anymore #193
Comments
Agree here. I came to the same issue yesterday. |
Same is happening for me. I was using |
I'm also having this problem. To add some info that seems to be the case for me:
|
Having the same issue currently, any workarounds? I went back to |
Ran into the same issue today, adding
However, my hot reload errors are still broken, instead of the elm compiler output, I just get this in the browser modal overlay:
Configs I'm using: https://github.com/inbucket/inbucket/blob/cf4c5a29bb05bd029221c890ea5ff9842ba295cb/ui/package.json |
We upgraded to Webpack 5 and this works fine provided that you have |
I had the same issue and adding the |
But --watch gave me a webpack 5 deprecation warning. |
at the end of the day, this is a webpack bug, and it might have been fixed. This issue should probably be closed |
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 |
As of version 4.5.0 of the webpack cli you cannot pass Without |
I'd like to suggest we bring back |
Just for info, downgrading to webpack before 4.5 is incompatible with dev server see webpack/webpack-cli#2422 |
had to install
|
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 browserThen repeat using version 7.01
Observe how the page doesn't change when changing the code
The text was updated successfully, but these errors were encountered: