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
Unexpected error while loading ./Fail.stories.tsx: Cannot create property 'parameters' on string 'Example'
TypeError: Cannot create property 'parameters' on string 'Example'
at Module../stories/Fail.stories.tsx (http://localhost:6007/main.iframe.bundle.js:341:27)
at __webpack_require__ (http://localhost:6007/runtime~main.iframe.bundle.js:854:30)
at fn (http://localhost:6007/runtime~main.iframe.bundle.js:151:20)
at webpackContext (http://localhost:6007/main.iframe.bundle.js:226:9)
at http://localhost:6007/vendors~main.iframe.bundle.js:15732:29
at Array.forEach (<anonymous>)
at http://localhost:6007/vendors~main.iframe.bundle.js:15730:18
at Array.forEach (<anonymous>)
at executeLoadable (http://localhost:6007/vendors~main.iframe.bundle.js:15729:10)
at executeLoadableForChanges (http://localhost:6007/vendors~main.iframe.bundle.js:15778:20)
The issue does not happen if export does not call .trim().
ashmind
changed the title
Storybook 6.5.5: "Cannot create property 'parameters' on string" when using string export with .trim(), even if excluded using excludeStories
Storybook 6.5.5: "Cannot create property 'parameters' on string" when using string export with .trim(), even if excluded using excludeStoriesMay 28, 2022
We’re cleaning house! Storybook has changed a lot since this issue was created and we don’t know if it’s still valid. Please open a new issue referencing this one if:
Describe the bug
If I have an export that is a trimmed string, Storybook fails even if it is excluded using
excludeStories
.The issue does not happen if export does not call
.trim()
.To Reproduce
Repo: https://github.com/ashmind/bugs-storybook-trim-string-export/tree/main/stories
See:
Fail.stories.tsx
for failureSuccess.stories.tsx
for similar cases that do not failSystem
The text was updated successfully, but these errors were encountered: