[Help] Dynamic require of "http" is not supported ?
Opened this issue · 0 comments
manjaoe commented
Describe the problem you confuse
after installed geotiff,error:
chunk-3EJPJMEH.js?v=80ed9312:12 Uncaught Error: Dynamic require of "http" is not supported
at chunk-3EJPJMEH.js?v=80ed9312:12:9
at geotiff.js?v=80ed9312:3670:11
yarn add geotiff
package.json
"dependencies": {
"antd": "^5.16.4",
"electron-updater": "^6.1.8",
"geotiff": "2.0.5",
"proj4": "^2.11.0"
}
App.tsx
import {fromFile} from "geotiff";
useEffect(() => {
fromFile("XXXX")
}, [])