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

npm- Unable to Generate xlsx file (and csv). Able to generate html, json #1837

Closed
Adr0it opened this issue Feb 11, 2024 Discussed in #1836 · 4 comments · Fixed by #1891
Closed

npm- Unable to Generate xlsx file (and csv). Able to generate html, json #1837

Adr0it opened this issue Feb 11, 2024 Discussed in #1836 · 4 comments · Fixed by #1891
Assignees
Labels
priority-1 (high) T61 user-reported Issues identified outside of the core team

Comments

@Adr0it
Copy link

Adr0it commented Feb 11, 2024

Discussed in #1836

Originally posted by Adr0it February 10, 2024
Hello, I'm not the best programmer, so I may be making obvious mistake somewhere, but I'm trying to generate an excel report with your npm package. Unfortunately, no xlsx is being generated. The same goes for csv. The only thing that generates is the corresponding html and json. Here are pictures.
image
image
image
image

I'm trying to generate the Excel file that is generated by the Chrome extension, except programmatically.

@MHoov MHoov added the user-reported Issues identified outside of the core team label Feb 12, 2024
@shunguoy shunguoy added the T61 label Feb 12, 2024
@tombrunet
Copy link
Member

@Adr0it Just for clarity, you're running in plain Node and not within a test framework like jest, mocha, cucumber, ....?

@Adr0it
Copy link
Author

Adr0it commented Feb 12, 2024

@Adr0it Just for clarity, you're running in plain Node and not within a test framework like jest, mocha, cucumber, ....?

Yes, regular NodeJS in VS Code.

@Adr0it
Copy link
Author

Adr0it commented Mar 28, 2024

Ok, I see the issue. When I passed a "Page" object into the method using Puppeteer, it did generate an Excel file. However, I was using axios package to just get html content as a string or something, and it wasn't working, and I didn't know why.

@shunguoy
Copy link
Contributor

requested @tombrunet for review.

shunguoy added a commit that referenced this issue Apr 17, 2024
shunguoy added a commit that referenced this issue Apr 17, 2024
shunguoy added a commit that referenced this issue Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-1 (high) T61 user-reported Issues identified outside of the core team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants