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

Error: nodebuffer is not supported by this browser #166

Closed
Mylothros-Charalampos opened this issue Jul 9, 2021 · 3 comments
Closed

Error: nodebuffer is not supported by this browser #166

Mylothros-Charalampos opened this issue Jul 9, 2021 · 3 comments

Comments

@Mylothros-Charalampos
Copy link

I am uploading .zip file which has shapefile in it, I am converting it into a buffer and the moment I pass the buffer in shp(buffer) I get this error Error: nodebuffer is not supported by this browser. I am using gatsby v3 with react and react dom 17.0.1 respectively. I tried already only to apply the .shp file and use shp.parseShp('.shpfile') and it works but I dont get to pass any feature.properties like this. Do you have any suggestion why this could happen.

@calvinmetcalf
Copy link
Owner

use this in your webpack config (that's what gatsby uses under the hood) https://github.com/Richienb/node-polyfill-webpack-plugin)

@Mylothros-Charalampos
Copy link
Author

thank you it worked :)

@weixiaoxiang
Copy link

thank you it worked :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants