Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Error "TypeError: (0 , _store.autoTitle) is not a function" when running test-storybook command #106

Closed
rshackleton opened this issue May 13, 2022 · 0 comments · Fixed by #107
Labels
bug Something isn't working

Comments

@rshackleton
Copy link

Describe the bug

When running yarn test-storybook the following error is reported for each story.

 FAIL   browser: chromium  src/stories/Components/Cards/GeneralCard/GeneralCard.stories.tsx
  ● Test suite failed to run                                                                                                                                                 
                                                                                                                                                                             
    TypeError: (0 , _store.autoTitle) is not a function                                                                                                                      
                                                                                                                                                                             
      at getDefaultTitle (node_modules/@storybook/test-runner/dist/cjs/playwright/transformPlaywright.js:72:31)                                                              
      at transformPlaywright (node_modules/@storybook/test-runner/dist/cjs/playwright/transformPlaywright.js:76:24)                                                          
      at Object.process (node_modules/@storybook/test-runner/playwright/transform.js:6:21)                                                                                   
      at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:619:31)                                                                  
      at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:765:40)                                                         
      at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:822:19)

Environment

  • OS: Windows 11
  • Node.js version: 16.13.0
  • NPM version: 8.1.0
  • Browser (if applicable): N/A
  • Browser version (if applicable): N/A
  • Device (if applicable): N/A

Additional context

This is on an existing storybook that I've upgraded from @storybook/react@^6.2.9 to @storybook/react@next

@rshackleton rshackleton added the bug Something isn't working label May 13, 2022
valentinpalkovic pushed a commit that referenced this issue May 18, 2022
[BREAKING CHANGES]: Drop Storybook 6.4 support

fixes #106
valentinpalkovic pushed a commit that referenced this issue May 18, 2022
[BREAKING CHANGES]: Drop Storybook 6.4 support

fixes #106
yannbf pushed a commit that referenced this issue Aug 22, 2022
[BREAKING CHANGES]: Drop Storybook 6.4 support

fixes #106
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant