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 while create Pool #392

Open
majkelEXE opened this issue Aug 29, 2023 · 1 comment
Open

Error while create Pool #392

majkelEXE opened this issue Aug 29, 2023 · 1 comment

Comments

@majkelEXE
Copy link

geotiff version: 2.0.7

This line simply throws an error:

const pool = new Pool();
TypeError [ERR_INVALID_URL_SCHEME]: The URL must be of scheme file
    at new NodeError (node:internal/errors:400:5)
    at Object.fileURLToPath (node:internal/url:1492:11)
    at new Worker (D:\WORK\mock-project\node_modules\web-worker\cjs\node.js:108:19)
    at create (file:///D:/WORK/mock-project/node_modules/geotiff/dist-module/worker/decoder.js:5:18)
    at file:///D:/WORK/mock-project/node_modules/geotiff/dist-module/pool.js:57:39
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: 'ERR_INVALID_URL_SCHEME'
}
- error unhandledRejection: TypeError [ERR_INVALID_URL_SCHEME]: The URL must be of scheme file
    at new NodeError (node:internal/errors:400:5)
    at Object.fileURLToPath (node:internal/url:1492:11)
    at new Worker (D:\WORK\mock-project\node_modules\web-worker\cjs\node.js:108:19)
    at create (file:///D:/WORK/mock-project/node_modules/geotiff/dist-module/worker/decoder.js:5:18)
    at file:///D:/WORK/mock-project/node_modules/geotiff/dist-module/pool.js:57:39
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  digest: undefined
}
@zhanghjtx
Copy link

I have the same problem, have you solved it?

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

2 participants