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
When creating a Svelte (not SvelteKit, although the same happens) and then installing Histoire, the following error message appears upon creating your first story:
Error while collecting story /Users/lorenzolewis/Developer/histoire-svelte-test/src/lib/Counter.story.svelte:
TypeError: Cannot set property target of #<Event> which has only a getter
at EventTarget.dispatchEvent (/Users/lorenzolewis/Developer/histoire-svelte-test/node_modules/happy-dom/lib/event/EventTarget.js:42:26)
at /Users/lorenzolewis/Developer/histoire-svelte-test/node_modules/svelte-hmr/runtime/proxy.js:310:10
at async ViteNodeRunner.directRequest (file:///Users/lorenzolewis/Developer/histoire-svelte-test/node_modules/vite-node/dist/client.mjs:251:5)
at async ViteNodeRunner.cachedRequest (file:///Users/lorenzolewis/Developer/histoire-svelte-test/node_modules/vite-node/dist/client.mjs:128:12)
at async request (file:///Users/lorenzolewis/Developer/histoire-svelte-test/node_modules/vite-node/dist/client.mjs:151:16)
at async /Users/lorenzolewis/Developer/histoire-svelte-test/node_modules/svelte-hmr/runtime/hot-api.js:3:31
at async ViteNodeRunner.directRequest (file:///Users/lorenzolewis/Developer/histoire-svelte-test/node_modules/vite-node/dist/client.mjs:251:5)
at async ViteNodeRunner.cachedRequest (file:///Users/lorenzolewis/Developer/histoire-svelte-test/node_modules/vite-node/dist/client.mjs:128:12)
at async request (file:///Users/lorenzolewis/Developer/histoire-svelte-test/node_modules/vite-node/dist/client.mjs:151:16)
at async /Users/lorenzolewis/Developer/histoire-svelte-test/node_modules/svelte-hmr/runtime/index.js:1:238
I've tried this with npm, yarn, and pnpm and have the same results for each
Reproduction
Install Svelte, install Histoire, create a story following the guide for svelte, and then try to run.
Did some more digging into this, when I'm using node LTS (18.12.1) I don't run into this issue. It's only when I'm using the latest version of node (19.0.1).
Describe the bug
When creating a Svelte (not SvelteKit, although the same happens) and then installing Histoire, the following error message appears upon creating your first story:
I've tried this with npm, yarn, and pnpm and have the same results for each
Reproduction
Install Svelte, install Histoire, create a story following the guide for svelte, and then try to run.
Reproduction: https://github.com/lorenzolewis/histoire-svelte-test
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: