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

ReferenceError: regeneratorRuntime is not defined #293

Open
igoldny opened this issue Apr 24, 2024 · 2 comments
Open

ReferenceError: regeneratorRuntime is not defined #293

igoldny opened this issue Apr 24, 2024 · 2 comments
Assignees

Comments

@igoldny
Copy link

igoldny commented Apr 24, 2024

Describe the bug

After installing addon-visual-tests on our repo some stories got broken.
We get ReferenceError: regeneratorRuntime is not defined error in stories and chromatic test run is failing on those stories.

Just to be clear those stories working prefectly fine without addon-visual-tests.

After diving into the error, it is happening on stories where we use internal old package that we cannot update since it deprecated but some team still using it and we'll have to support it for a while.
This is a dropdown package using old downshift version (details below)

To reproduce

to mimic the internal package you can try to create package with the following dependencies:

"dependencies": {
"cypress-wait-until": "^1.7.1",
"downshift": "^6.1.7",
"lodash.debounce": "^4.0.8",
"lodash.differencewith": "^4.5.0",
"lodash.isequal": "^4.5.0",
"prop-types": "^15.7.2",
"react-virtualized": "^9.22.3",
"stickyard": "^0.3.0"
}

Environment

OS X - Chrome -Storybook 8 - "@chromatic-com/storybook": "^1.3.3"
But happens in chromatic cloud as well
You can dm me if you want me to provide chromatic build url.

@JReinhold
Copy link
Contributor

Does the error happen when

  1. opening the story locally in Storybook dev?
  2. ... or only with a built Storybook?
  3. ... or only when running local builds with the addon?
  4. ... or does the error also happen when running normal Chromatic builds via CI (with the addon installed)

I'm trying to pinpoint if merely having the addon installed causes this error, or if this error only occurs when you trigger local builds with the addon.

To be able to debug this further it would be great if you could provide a minimal reproduction repository that demonstrates the error in a minimal setup. See https://storybook.js.org/docs/contribute/how-to-reproduce

@igoldny
Copy link
Author

igoldny commented Apr 24, 2024

Happens only when addon-visual-tests is on in all options locally, static build, chromatic storybook (both locally and normal build).
Seems to be related to installing the addon.

@vanessayuenn vanessayuenn moved this to Empathy Backlog in Core Team Projects May 7, 2024
@vanessayuenn vanessayuenn moved this to Empathy Backlog in Core Team Projects May 14, 2024
@ndelangen ndelangen removed their assignment Jun 12, 2024
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

4 participants