Closed henryruhs closed 4 years ago
+1 Any known workarounds we can apply?
Set "js-base64": "2.5.2"
in your local package.json
like mentioned in the pull request https://github.com/meinaart/cypress-plugin-snapshots/pull/125
Seems like it's trying to find
js-base64
instead of base64-js
What fixed it:
>npm install js-base64@2.5.1 -S
@brndto i tried your suggestion, the error is gone, but no image snapshots taken. anyone else has the same problem?
There are multiple factors coming together here. It seems that
js-base64
is missing their minified versions since a couple of releases and that you are using this instead of the original file that btw. is way better for tree shaking.Code
Fix
A proper fix would be to get rid of this anti-pattern and use
require('js-base64')
instead. Same for the other libraries... you are doing it wrong :-)Error
Monday builds are broken as of that error... friday builds that have been okay before the weekend are broken on re-run aswell:
Environment