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

PRN not defined in xlsx.mini.js #1760

Closed
andwilr opened this issue Feb 19, 2020 · 3 comments
Closed

PRN not defined in xlsx.mini.js #1760

andwilr opened this issue Feb 19, 2020 · 3 comments

Comments

@andwilr
Copy link

andwilr commented Feb 19, 2020

When uploading a CSV using xlsx.mini.js I get an error message:

Uncaught ReferenceError: PRN is not defined

Looking through the code, PRN is used but not defined. What is PRN? Is it supposed to be defined in xlsx.mini.js and just missing (bug), or is there something else I should be loading before xlsx.mini.js for it to work?

Here are the instances expecting PRN.to_workbook to exist:

return PRN.to_workbook(data, o);

sheetjs/xlsx.mini.js

Lines 7968 to 7969 in a81bb78

if(str) { o.type = "string"; return PRN.to_workbook(data, o); }
return PRN.to_workbook(d, o);

@mingdongtu
Copy link

you can choose diffrent version of the xlsx-sheet (https://cdnjs.com/libraries/xlsx)

@chenxeed
Copy link
Contributor

chenxeed commented Jun 16, 2020

@mingdongtu I've tried the latest version v0.16.2 and it's still not working. Was it working for you?

Try to use this CSV for example:
username.zip

I've made a PR #1908 to help resolve this. Let's see if it'll be fixed in the next release :D

@SheetJSDev
Copy link
Contributor

@chenxeed 's PR was merged and we've made a few releases since then.

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