propose slight change in the documentation
See original GitHub issueI use this in a vite project. it works great locally, but once build the code responds with “autoTable is not a function” I solved this eventually by using the alternative import and code syntax:
import jsPDF from "jspdf";
import autoTable from 'jspdf-autotable';
autoTable(doc, {...});
I suspect Vite optimizes this import out of the build
import 'jspdf-autotable';
because it doesn’t recognize it is being used.
I would propose to set the import...from
as the default syntax in the documentation. I feel it is the more usual way.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Effective Change Management - Documenting Changes
The key steps of change management process are: planing, evaluation, documentation, review, approval, communication, implementation, and post ...
Read more >4 Steps to Effective Change Control | Dice.com Career Advice
Once the Change Request is documented, it's submitted to the project team. Here again, the process varies from the simple (a phone call...
Read more >Change Request: How to Submit, Manage and Execute
A change request acts as a formal document of a proposed change to a project and are a core component of the change...
Read more >What is a change control process and how do you use it?
A change control process is a way for project managers to submit requests to stakeholders for review, that are then approved or denied....
Read more >Incorporate revisions with track changes - Microsoft Support
Let's say you're the original writer of a document, and you're reviewing changes suggested by others. As you go through the document, you...
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
@fran1987 Yeah, I saw that too. Didn’t try it but it’ll likely solve the problem as well. The solution I used is also in the docs. My suggestion is that one of these methods is better mentioned as the default way to install and use, rather then the
import 'jspdf-autotable';
which is now the first thing people see and it may give them trouble when building for production.Merged