Rollup build cause unexpected error with the last version of jspdf
See original GitHub issueSince we use the last version of jspdf we can’t run any build on our app, we get the following error:
We use it as import import { jsPDF } from 'jspdf';
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9
Top Results From Across the Web
Rollup build cause unexpected error with the last version of jspdf
This looks like your canvg installation is corrupted. Could you try removing the node_modules folder and running npm install again?
Read more >Rollup build cause unexpected error with the last version of jspdf
Since we use the last version of jspdf we can't run any build on our app, we get the following error: image.
Read more >Rollup: dealing with dependencies that are typescript files ...
Rollup : dealing with dependencies that are typescript files. Getting Error: Unexpected token - Stack Overflow. Stack Overflow for Teams – Start collaborating ......
Read more >前端使用jspdf生成PDF通过ajax传输后台生成PDF文件
toDataURL('image/jpeg', 1.0) var pdf = new jsPDF('', 'pt', 'a4') //有两个高度需要区分,一个是html页面的实际高度,和生成pdf的页面高度(841.89) ...
Read more >pdf-lib - npm
Create and modify PDF files with JavaScript. Latest version: 1.17.1, last published: a year ago. Start using pdf-lib in your project by ...
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
You might also define
canvg
as external if you don’t use theaddSvgAsImage
function. See the readme for details.ok ok we can’t add commonjs to our rollup but we can wait an esm version of @babel/runtime… Thx!