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

[Help] Dynamic require of "http" is not supported ? #215

Open
manjaoe opened this issue May 8, 2024 · 0 comments
Open

[Help] Dynamic require of "http" is not supported ? #215

manjaoe opened this issue May 8, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@manjaoe
Copy link

manjaoe commented May 8, 2024

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")
}, [])
@manjaoe manjaoe added the help wanted Extra attention is needed label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant