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
We have been using react-theming/storybook-addon for quite some time and it was working fine. After recent upgrade to v1.1.2, the plugin is not working and we are seeing theming tab with 'Waiting for data' message. Also, below console error is seen when we click on the theming tab.
vendorsmain.801c64baa44ce1fed39c.manager.bundle.js:16 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'setQueryParams')
at setCurrent (vendorsmain.801c64baa44ce1fed39c.manager.bundle.js:16)
at vendorsmain.801c64baa44ce1fed39c.manager.bundle.js:16
at vendorsmain.801c64baa44ce1fed39c.manager.bundle.js:16
at fk (vendorsmain.801c64baa44ce1fed39c.manager.bundle.js:16)
at exports.unstable_runWithPriority (vendorsmain.801c64baa44ce1fed39c.manager.bundle.js:16)
at gg (vendorsmain.801c64baa44ce1fed39c.manager.bundle.js:16)
at Oj (vendorsmain.801c64baa44ce1fed39c.manager.bundle.js:16)
at Lj (vendorsmain.801c64baa44ce1fed39c.manager.bundle.js:16)
at vendorsmain.801c64baa44ce1fed39c.manager.bundle.js:16
at exports.unstable_runWithPriority (vendors~main.801c64baa44ce1fed39c.manager.bundle.js:16)
This error seems to be related to the changes made in commit 8f9a3ca.
Could you please suggest if we have to make any changes in the addon usage after the recent upgrade?
The text was updated successfully, but these errors were encountered:
@Vishnupriyaakinapelli we bumped dependencies recently
sorry for the inconvenience but looks like it is worth locking the previous version until we fix it
I was trying to add this plugin to my existing storybook setup when I ran into this issue as well. Reverting to 1.1.1 has resolved it for me.
In my research I found that the api param was not being passed to setCurrent correctly. It is being set on window.api in the changes linked above so adding a line to the top of setCurrent in actions.js would patch it, but this doesn't seem like the appropriate fix.
if (!api) api = window.api
Once I put this in place the addon started showing the themes. I've reverted to the previous version for now and I'm looking forward to using this addon. Thanks for your work!
We have been using react-theming/storybook-addon for quite some time and it was working fine. After recent upgrade to v1.1.2, the plugin is not working and we are seeing theming tab with 'Waiting for data' message. Also, below console error is seen when we click on the theming tab.
vendors
main.801c64baa44ce1fed39c.manager.bundle.js:16 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'setQueryParams')main.801c64baa44ce1fed39c.manager.bundle.js:16)at setCurrent (vendors
at vendors
main.801c64baa44ce1fed39c.manager.bundle.js:16main.801c64baa44ce1fed39c.manager.bundle.js:16at vendors
at fk (vendors
main.801c64baa44ce1fed39c.manager.bundle.js:16)main.801c64baa44ce1fed39c.manager.bundle.js:16)at exports.unstable_runWithPriority (vendors
at gg (vendors
main.801c64baa44ce1fed39c.manager.bundle.js:16)main.801c64baa44ce1fed39c.manager.bundle.js:16)at Oj (vendors
at Lj (vendors
main.801c64baa44ce1fed39c.manager.bundle.js:16)main.801c64baa44ce1fed39c.manager.bundle.js:16at vendors
at exports.unstable_runWithPriority (vendors~main.801c64baa44ce1fed39c.manager.bundle.js:16)
This error seems to be related to the changes made in commit 8f9a3ca.
Could you please suggest if we have to make any changes in the addon usage after the recent upgrade?
The text was updated successfully, but these errors were encountered: