Closed ThomasKuhlmann closed 3 years ago
Hey! Thanks for the big report, I noticed this yesterday as well but for me it didn't break anything and I didn't have time to think about it.
I think I know the reason for this and can fix it soonish.
Should be fixed in 1.0.4.
@SimeonC I just checked the new version, something has definitely changed, but I am now getting a different error
TypeError: Cannot add property components, object is not extensible
at prepare (http://localhost:6006/vendors~main.iframe.bundle.js:27103:24)
at http://localhost:6006/vendors~main.iframe.bundle.js:27157:14
at http://localhost:6006/vendors~main.iframe.bundle.js:27145:17
at push../.storybook/preview.js.decorators
Weird, I can't replicate that one. Can you give me a reproduction repository so I can debug it?
Certainly, I set up a minimal version here:
Ok, Vue... I think it should be fixable (TBH haven't used Vue yet, but storybook shouldn't have issues I don't think). Thanks for the repo, that will help a lot with figuring out why it's not working.
It might take me a week or two to find the time to dive into it as work's pretty hectic this + next week.
No problem, let me know if there's anything I can do to help! No idea about react, but I do know a fair bit about Vue :)
Apparently I not only didn't manage to fix this but made it worse 🤦
Still working on trying to figure out how to get this to run in non-react apps.
Raised an MR on your repository with the working version. It looks like part of the fix was that storybook requires react to run (I think), you can probably move react to devDeps.
I think this should be fixed now ✨ 😅
Thanks for your help! I've made the changes you suggested (latest version, removed 'preset' and added xstate: true ) - that was enough to get it working, no additional react as devDependency needed
Hi!
I keep getting an error every time I enable this add-on - and I'm not familiar with React, so not sure if this is related to my storybook setup or this add-on...
Error
Versions
Storybook 6.2.8 storybook-xstate-addon 1.0.3
Any pointers would be very much appreciated!