[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:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@merceyz Yep, verified that as well. Here’s the new ticket to track it: https://github.com/yarnpkg/berry/issues/835
Thanks guys, just confirming that it is working with the master version.