Open yusefrich opened 4 years ago
workaround add pollyfills.ts
(window as any).process = {
browser: true
};
or
download https://unpkg.com/shp-write@latest/shpwrite.js
apply https://github.com/mapbox/shp-write/issues/48#issuecomment-308412452
add angular.json
"scripts": [
"your_shpwrite_path",
]
in your component or service
declare var shpwrite: any;
...
...
shpwrite.download()
Is there any fix for the browser version?
Hi guys, the zip function inside
zip.js
does not work in a angular implementation of this package, it returns the following error:My current implementation
What i found out
After messing arround i found that the error is in line 33 of the zip.js file inside src, where is has:
since theres no process being set, because the method is being called by a angular project, the download does not happens.