Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use with import #10

Closed
mfeuermann opened this issue Oct 11, 2016 · 2 comments
Closed

Unable to use with import #10

mfeuermann opened this issue Oct 11, 2016 · 2 comments

Comments

@mfeuermann
Copy link

Hello

Im trying to use papa parse with ES6

import Papa from 'meteor/harrison:papa-parse';

Papa.parse( e.target.files[0], {
header: true,
complete( results, file ) {
console.log(results);
console.log(file);
}
});

Result is _harrisonPapaParse2.default.parse is not a function
If im using it without import - old Meteor without import, it workings fine!

greglaw pushed a commit to greglaw/papa-parse-meteor that referenced this issue Feb 10, 2017
harrisonhunter pushed a commit that referenced this issue Feb 12, 2017
Export papa to both client and server to address issue #10
@reywood
Copy link

reywood commented Mar 10, 2017

If using imports, you no longer need this package. You can install the papaparse NPM package directly and import it. In the root of your meteor project run meteor npm install --save papaparse. Then, in your client script you can import with import Papa from 'papaparse';.

@chriszrc
Copy link

chriszrc commented Dec 8, 2017

I had to do import * as Papa from 'papaparse';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants