Comments (6)
Is there any solutions in a vite environment?
from shapefile-js.
The use of async
forces node 8+ . Buffer
inherits from Uint8Array
in the supported node versions, so all of the Buffer operations could be replaced with DataView
ops (completely obviating the browser issue)
from shapefile-js.
Add this to your webpack file.
resolve: {
fallback: {
buffer: require.resolve("buffer/")
}
},
plugins: [
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"]
})
}
from shapefile-js.
Add this to your webpack file.
resolve: { fallback: { buffer: require.resolve("buffer/") } }, plugins: [ new webpack.ProvidePlugin({ Buffer: ["buffer", "Buffer"] }) }
I can't do that as I am using create-react-app and cannot afford to eject neither can I change the webpack file
from shapefile-js.
I'm building for the web with webpack. To avoid this error message and also this one I have added:
resolve: {
fallback: {
buffer: false
}
},
plugins: [
new NodePolyfillPlugin()
]
from shapefile-js.
Is there any solutions in a vite environment?
see here #200 (comment)
from shapefile-js.
Related Issues (20)
- coordinates must be finite numbers HOT 4
- Problem with instanceof check HOT 3
- It removes metadata as name and id from shapefile
- global is undefined HOT 1
- British National Grid prj - I don't know that shp type HOT 6
- Can't read the data of 'the loaded zip file
- after npm install, how to import shp API? HOT 1
- Still do not support Projected coordinate system? HOT 2
- Opening shp produces wrong coordinates for "EPSG:2039" - Israel 1993 / Israeli TM Grid
- UI Issue
- Can't parse shapefile zip
- Error: nodebuffer is not supported by this platform HOT 5
- Vulnerability with jszip before 3.8.0 HOT 1
- nodebuffer is not supported by this platform HOT 2
- Coordinates not converted to ESPG:4326
- Error using in Vue3 HOT 3
- TypeError: Right-hand side of 'instanceof' is not an object HOT 3
- big number double error
- RangeError: Trying to access beyond buffer length HOT 11
- Failed to construct 'TextDecoder': The encoding label provided ('UTF-8') is invalid. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shapefile-js.