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] Test runner crashes #395

Open
ganlhi opened this issue Nov 17, 2023 · 2 comments
Open

[bug] Test runner crashes #395

ganlhi opened this issue Nov 17, 2023 · 2 comments

Comments

@ganlhi
Copy link

ganlhi commented Nov 17, 2023

Describe the bug
When I try to execute test-storybook, I get this error:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Jest: Got error running globalSetup - /Users/me/my-project/node_modules/@storybook/test-runner/playwright/global-setup.js, reason: Package subpath './lib/adapters/http' is not defined by "exports" in /Users/me/my-project/node_modules/axios/package.json

System

Storybook Environment Info:

  System:
    OS: macOS 14.0
    CPU: (8) arm64 Apple M1
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.13.0 - ~/.asdf/installs/nodejs/18.13.0/bin/node
    Yarn: 3.6.4 - ~/my-project/node_modules/.bin/yarn <----- active
    npm: 8.19.3 - ~/.asdf/plugins/nodejs/shims/npm
    pnpm: 8.6.9 - ~/.config/local/share/pnpm/pnpm
  Browsers:
    Chrome: 119.0.6045.159
    Safari: 17.0
  npmPackages:
    @storybook/addon-a11y: ^7.5.3 => 7.5.3
    @storybook/addon-essentials: ^7.0.9 => 7.5.3
    @storybook/addon-interactions: ^7.0.23 => 7.5.3
    @storybook/addon-toolbars: ^7.5.3 => 7.5.3
    @storybook/core-common: ^7.0.9 => 7.0.24
    @storybook/core-server: ^7.0.9 => 7.5.3
    @storybook/jest: ^0.1.0 => 0.1.0
    @storybook/react-vite: ^7.0.9 => 7.0.26
    @storybook/test-runner: ^0.15.1 => 0.15.1
    @storybook/testing-library: ^0.2.0 => 0.2.0
@josecarneiro
Copy link

@ganlhi Getting the same issue after bumping axios from 0.25.0 to 1.6.1. Have you come across any solution?

@ganlhi
Copy link
Author

ganlhi commented Jan 4, 2024

I updated @storybook/test-runner to version 0.16.0, and this seems to be fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants