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?] Can't `yarn add jspdf`: Error: file-saver@github:eligrey/FileSaver.js#1.3.8 isn't supported by any available resolver

See original GitHub issue
  • I’d be willing to implement a fix

Describe the bug

While trying to add the jspdf package yarn fails with:

$ yarn add jspdf
➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: file-saver@github:eligrey/FileSaver.js#1.3.8 isn't supported by any available resolver
    at t.MultiResolver.getResolverByDescriptor (/Users/nkalinov/.nvm/versions/node/v12.14.1/lib/node_modules/yarn/bin/yarn.js:24:41628)
    at t.MultiResolver.bindDescriptor (/Users/nkalinov/.nvm/versions/node/v12.14.1/lib/node_modules/yarn/bin/yarn.js:24:41082)
    at t.OverrideResolver.bindDescriptor (/Users/nkalinov/.nvm/versions/node/v12.14.1/lib/node_modules/yarn/bin/yarn.js:36:862333)
    at /Users/nkalinov/.nvm/versions/node/v12.14.1/lib/node_modules/yarn/bin/yarn.js:36:583324
    at async Promise.all (index 76)
    at async N.resolveEverything (/Users/nkalinov/.nvm/versions/node/v12.14.1/lib/node_modules/yarn/bin/yarn.js:36:582677)
    at async /Users/nkalinov/.nvm/versions/node/v12.14.1/lib/node_modules/yarn/bin/yarn.js:36:599416
    at async l.startTimerPromise (/Users/nkalinov/.nvm/versions/node/v12.14.1/lib/node_modules/yarn/bin/yarn.js:24:45528)
    at async N.install (/Users/nkalinov/.nvm/versions/node/v12.14.1/lib/node_modules/yarn/bin/yarn.js:36:599028)
    at async /Users/nkalinov/.nvm/versions/node/v12.14.1/lib/node_modules/yarn/bin/yarn.js:50:77074
➤ YN0000: └ Completed in 0.14s
➤ YN0000: Failed with errors in 0.14s

To Reproduce

yarn add jspdf

Screenshots

If applicable, add screenshots to help explain your problem.

Environment if relevant (please complete the following information):

  • OS: OSX
  • Node version 12.14.1
  • Yarn version 2.0.0-rc.27

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
raspy8766commented, Jan 29, 2020

@merceyz Yep, verified that as well. Here’s the new ticket to track it: https://github.com/yarnpkg/berry/issues/835

0reactions
nkalinovcommented, Jan 30, 2020

Thanks guys, just confirming that it is working with the master version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot install jspdf 1.5.3 - Stack Overflow
It shows the error Cannot read property 'charAt' of undefined (using with html2canvas). When I try to install jspdf 1.5.3 I get this:...
Read more >
jspdf | Yarn - Package Manager
A library to generate PDFs in JavaScript. You can catch me on twitter: @MrRio or head over to my company's website for consultancy....
Read more >
jspdf-fix-file-saver - npm
PDF Document creation from JavaScript. Latest version: 1.5.4, last published: 3 years ago. Start using jspdf-fix-file-saver in your project ...
Read more >
jspdf - UNPKG
The CDN for jspdf. ... };\n\n /**\n * Adds a properties to the PDF document. ... be supported by jsPDF font metrics, otherwise...
Read more >
React.js Bootstrap 5 PDF Invoice Generator Using ... - YouTube
React.js Bootstrap 5 PDF Invoice Generator Using jsPDF & Filesaver. js & Html2Canvas in JSX. 1K views Streamed 3 months ago.
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