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

Monorepo support - ENOENT: no such file or directory, open gdal3WebAssembly.data' #76

Open
alexcroox opened this issue May 31, 2024 · 1 comment

Comments

@alexcroox
Copy link

alexcroox commented May 31, 2024

I have a monorepo with FE and BE in src/packages(client/server)

I'm importing gdal3.js in Node v20 (src/packages/server):

import initGdalJs from 'gdal3.js/node.js'

but I'm getting:

ENOENT: no such file or directory, open './node_modules/gdal3.js/dist/package/gdal3WebAssembly.data'

@bugra9
Copy link
Owner

bugra9 commented Jun 5, 2024

Hi @alexcroox,

By default it searches for data file in node_modules/gdal3.js/dist/package/. Can you try to set correct path in config?

For example;
initGdalJs({ path: '../node_modules/gdal3.js/dist/package/' })

https://gdal3.js.org/docs/global.html#initGdalJs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo (Bug)
Development

No branches or pull requests

2 participants