Closed bertday closed 1 year ago
Hello! Thank you for this awesome project @bugra9 👋
I am trying to bring gdal3.js into a new Node project. This is my code so far:
import initGdalJs from 'gdal3.js'; (async () => { const Gdal = await initGdalJs(); })();
I'm getting an error:
Uncaught TypeError TypeError: xr.readFileSync is not a function
I'm using Node v18.13.0 and gdal3.js 2.4.0.
Thank you for any tips on what I might be doing wrong here!
The example gave me a clue... it should be:
import initGdalJs from 'gdal3.js/node.js';
with a /node.js at the end!
/node.js
Hello! Thank you for this awesome project @bugra9 👋
I am trying to bring gdal3.js into a new Node project. This is my code so far:
I'm getting an error:
I'm using Node v18.13.0 and gdal3.js 2.4.0.
Thank you for any tips on what I might be doing wrong here!