You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like issue #44, I got the Class constructor SvelteComponent cannot be invoked without 'new' error; applying the workaround mentioned for a modern browser via browserslist:
"browserslist": [
"edge >= 13"
]
gets things working in parcel, but as comment on #44 mentions, it completely breaks HMR.
Looking at svelte-asset.js I found that if you stop calling makeHot, then the browser refreshes as normal.
A temporary solution would be to turn off HMR entirely by adding the --no-hmr flag to the parcel command.
I will add a pull request for a fix later today.
🐛 Workaround Report for #44
Like issue #44, I got the
Class constructor SvelteComponent cannot be invoked without 'new'
error; applying the workaround mentioned for a modern browser viabrowserslist
:gets things working in parcel, but as comment on #44 mentions, it completely breaks HMR.
Looking at
svelte-asset.js
I found that if you stop callingmakeHot
, then the browser refreshes as normal.i.e. remove these lines:
parcel-plugin-svelte/packages/parcel-plugin-svelte/src/svelte-asset.js
Lines 86 to 88 in e0ee9a3
And then modifying a
svelte
file does refresh the browser.🌍 Your Environment
The text was updated successfully, but these errors were encountered: