-
Notifications
You must be signed in to change notification settings - Fork 92
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
_fs.readFileSync is not a function #44
Comments
Can you send the entire error log along with the Node.js version you are using? |
I have the same Problem. The reason seems to be that clientside js cant use the fs(FileSystem). Here is the same issue with another package: According to the Answers there, the Problem can be solved by using a html Input tag and reading the file that way. But i have not tried it yet. I hope that helps. |
It works! But the code has to be modified. I added a posibiliy to pass a "type" argument to the underlying xlsx package. My code looks like this:
and the change in convert-excel-to-json.js looks like this:
|
Final edit: Henrik's change in convert-excel-to-json.js also works for me, with a slight variation on where the array buffer comes from: with this.file coming from a standard HTML file picker:
|
This worked for me as well. Thank you! |
Works perfect!!! @DiegoZoracKy Could commit the change pls? |
This shows up while following the simple steps in npm documentation
The text was updated successfully, but these errors were encountered: