question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(bug) Cannot find module 'js-base64/base64.min.js'

See original GitHub issue

Describe the bug

Install, run, observe the issue:

cy.task('cypress-plugin-snapshot:getFile') failed with the following error:
> Cannot find module 'js-base64/base64.min.js'

image

The reason is that file referenced in https://github.com/meinaart/cypress-plugin-snapshots/blob/31fd4a5b38409b98c47e76142d862b257ac7dd7f/src/paths.js#L2

Actually is not present in the package: image

It was there in version 2.5.x and in 2.6.x it is removed. The version installed with cypress-plugin-snapshots is currently 2.6.3.

I suggest to narrow the version range.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
kirill-konshincommented, Jul 15, 2020

Just noticed #125 and #134. Please prioritize the merge as currently plugin is not usable unless you do something like this in package.json:

{
  "resolutions": {
    "js-base64": "2.5.2"
  }
}
3reactions
zakkorcommented, Jul 25, 2020

Unfortunately it looks like the project is dead

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'js-base64' - Stack Overflow
The js-base64 module is pretty common, so a pre-made Typings for that package surely exist. You can use them right away by: npm...
Read more >
js-base64 - npm
Start using js-base64 in your project by running `npm i js-base64`. ... <script type="module"> // note jsdelivr.net does not automatically ...
Read more >
How to Bundle JavaScript With Rollup — Step-by-Step Tutorial
Learn how to use Rollup as a smaller, more efficient alternative to webpack and Browserify to bundle JavaScript files in this step-by-step tutorial...
Read more >
Module Methods - webpack
No CommonJS allowed, for example, you can't use require , module.exports or exports; File extensions ... import 'data:text/javascript;charset=utf-8;base64 ...
Read more >
Node.js v19.3.0 Documentation
Bugs found in legacy features are unlikely to be fixed. ... tabs, and new lines contained within the base64-encoded string are ignored.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found