sveltejs / svelte-devtools

A browser extension to inspect Svelte application by extending your browser devtools capabilities
https://chromewebstore.google.com/detail/svelte-devtools/kfidecgcdjjfpeckbblhmfkhmlgecoff
MIT License
1.49k stars 79 forks source link

Error loading svelt app built with webpack #18

Closed frantic0 closed 4 years ago

frantic0 commented 4 years ago

Hello,

I've been developing a svelte app bundled with the webpack template https://github.com/sveltejs/svelte-loader/issues/112#issue-527600086. I set svelte compiler options to 'dev:true' and finally I got a successful connection.

It seems to load the root component correctly... However, I get an error that prevents the rest of the component hierarchy to load.

VM309:396 Uncaught TypeError: internal.props.reduce is not a function at serializeNode (<anonymous>:396:38) at Object.add (<anonymous>:461:15) at addNode (<anonymous>:42:51) at Object.block.m (<anonymous>:159:9) at mount_component (index.mjs:1273) at mount (App.svelte:10) at Object.block.m (<anonymous>:164:7) at mount_component (index.mjs:1273) at init (index.mjs:1358) at new App (App.svelte:90)

Do you have an idea of what may be causing this?

Thanks, FØ

RedHatter commented 4 years ago

I have determined this issue was caused by svelte version 3.13 I'm currently looking into a fix.

RedHatter commented 4 years ago

For anyone following along the cause was https://github.com/sveltejs/svelte/commit/47a9811c1e571e1e674db1ff52f904d6b280eb5c.

Fix on master, will publish a new release in a day or two.