-
Notifications
You must be signed in to change notification settings - Fork 1
Fails with webpack #4
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
Comments
I have a Webpack HMR example somewhere, let me check if it is up to date. |
Yes, it still works. See for yourself: https://github.com/rixo/svelte-template-webpack-hot |
You're absolutely right. Mind boggles, I'm on latest version of every package and yet it doesn't seem to like me. No matter, I'll start removing things from Closing. |
Sorry, I didn't mean to scare you off... Double check the |
I have this issue too. I'll investigate and find out what can be done. |
@rendall Can you share you Webpack config? |
I can and will. I noticed something not clear and came back to ask about it. In https://github.com/rixo/svelte-template-webpack-hot webpack config the I don't see in
...
|
Here's a link to the webpack.config.js that errors out Here's the specfic ruleset I'm using
Where
|
I should point out, if it's helpful, that hot loading works just perfectly with SASS => CSS => server pipeline 💯 The template uses this setup for module options:
I tried using those options alone and still no bueno The overlay error is:
From the console it's:
|
HEY! I got it working! 🥳 It's that I added that, and it works as expected: rendall/svelte-minimal@990c938 Now I just have to figure out why vscode is saving my files with tabs. 📑 What does that boolean do? |
I think just documenting that boolean could close this issue. |
Yes, that is definitely helpful! This can be closed now. Thanks very much for your help! |
With
webpack
(following the template), attempt to update even the simplest component fails withFailed to init component
. More specifically:TypeError: "cmp.$capture_state is not a function"
.This happens regardless of the value of
optimistic
.The text was updated successfully, but these errors were encountered: