I know that ArcGIS Web AppBuilder Desktop is built using Node.js
Is there any way we can add the third party node.js modules in Web AppBuilder Desktop using the npm command and then access these modules in the custom widget?
For example, I would like to use the npm module: https://www.npmjs.com/package/xlsx In a custom widget
Where do I write the command to download the module?
After downloading the module how do I access it in the custom widget?
Brent,
Node is used in Web App Builder but not in any deployed app. Once the app is built it is just a pure JS application and has no access to Node.
I understand, is there any way to add and access the third party node.js modules while the app is still in ArcGIS Web AppBuilder for Developer/server/app directory?
Brent,
I would imagine so, but I have no experience doing that.
EDIT: actually it does not sound promising based on this link:
https://stackoverflow.com/questions/37505938/using-a-third-party-library-in-a-node-application
Hi Brent
You can do the same
If you found it helpful please like the comment . If you find the better solution please reply on top of it
Thanks
In my organisation, that is near impossible because the system administration is run by 60 year olds who believe these JavaScript packages are full of viruses. I've tried to even inject these and then call the code from that, but it doesn't work. I can get far by using ExcelJS, as its the only library that supports AMD, however, the function to write the file back out on client-side doesn't work because it is only supported server side.
Was there ever a solution found for this post?