Closed DorianMaliszewski closed 1 year ago
I had a similar error after passing an object instead of a string to the configuration. I solved it by cleaning the local storage. It seems like the configuration is persisted there and not properly updated.
I can confirm that localStorage.clear()
was a fix for this.
Informations
export const parameters = { actions: { argTypesRegex: '^on[A-Z].*' }, controls: { matchers: { color: /(background|color)$/i, date: /Date$/, }, }, options: { storySort: { method: '', order: ['Introduction', 'Components', 'Credits'], locales: '', }, }, darkMode: { // Override the default dark theme dark: { ...themes.dark, appBg: 'black' }, // Override the default light theme light: { ...themes.normal, appBg: 'red' }, darkClass: 'dark', lightClass: 'light', current: 'dark', classTarget: 'html', stylePreview: true }, }
export const decorators = [ (Story) => (
), ]
Error description
Starting my storybook result in blank page with the following error :
Uncaught DOMException: Failed to execute 'remove' on 'DOMTokenList': The token provided must not be empty.
. What is the solution here ?Screenshot