Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

TypeError: deepmerge is not a function #258

Closed
sebzapata opened this issue Dec 7, 2018 · 5 comments
Closed

TypeError: deepmerge is not a function #258

sebzapata opened this issue Dec 7, 2018 · 5 comments
Milestone

Comments

@sebzapata
Copy link

Describe the bug
Installed using npm i excel4node. After starting the project, when I click the button to create a workbook, which runs const wb = new xl.Workbook(); I get the error 'TypeError: deepmerge is not a function'

Environment (please complete the following information):

  • OS: Windows 10
  • Node Version: 6.1.0
  • excel4node Version: 1.7.0

Additional context
Using in a project I am making where after clicking a 'Download data' button, the data is downloaded into an .xlsx document

@natergj
Copy link
Owner

natergj commented Dec 8, 2018

@sebzapata
Are you using some sort of packaging library (Webpack, rollup, gulp, etc) to package your app to run in a web browser? excel4node currently does not support running in a web browser and I've seen others with this issue when trying. A sample project that demonstrates the issue would be very useful for troubleshooting.

@sebzapata
Copy link
Author

Yes, I'm using react-scripts which I believe uses webpack.
I'm not sure how to show you a sample project demonstrating the issue, but for the project I'm making, I have a webpage which keeps track of staff in an office. I want the user to be able to download this data into an Excel spreadsheet, ideally along with an image, by clicking a 'Download data' button.
If excel4node is not able to do this, are you able to recommend another library that could?

Thank you

@fernandoruaro
Copy link

Hey guys, I was able to fix this by updating the deepmerge version. Here is the PR with the fix: #263

@reestolonio
Copy link

Any update on this?

@natergj natergj added this to the 1.7.1 milestone Mar 25, 2019
@natergj
Copy link
Owner

natergj commented Mar 25, 2019

version has been updated with PR #275 and will be released with v1.7.1 shortly

@natergj natergj closed this as completed Mar 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants