Jspdf-autotable: How can I import using ES6?

Created on 22 Jun 2018  路  1Comment  路  Source: simonbengtsson/jsPDF-AutoTable

I saw someone using:

const jsPDF = require('jspdf');
require('jspdf-autotable');

But I have a project in ES6, so, I want to use import/export

like as:

import jsPDF from 'jspdf';
import { autotable } from "jspdf-autotable";

But, I think, I don't need to use jspdf because when I did download of the jspdf-autotable, jspdf coming together, right?

Project -> Node/Meteor, without webpack, React, JS ES6++, etc...

Most helpful comment

Simple:

 import jsPDF from 'jspdf';
 import 'jspdf-autotable';

>All comments

Simple:

 import jsPDF from 'jspdf';
 import 'jspdf-autotable';
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Alorse picture Alorse  路  4Comments

JoakFlores picture JoakFlores  路  3Comments

mmghv picture mmghv  路  4Comments

webdream-fr picture webdream-fr  路  6Comments

simonbengtsson picture simonbengtsson  路  5Comments