addon-visual-tests
addon-visual-tests copied to clipboard
ReferenceError: regeneratorRuntime is not defined
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.