Closed gouthy closed 1 year ago
No, you're not. You just have to move your code from commonjs to esmodule. I had the same issue some weeks ago, all I did was just to add "type": "module" to your package.json file and instead of using require you would use import statement. Hope it helps.
Thanks I figured it out.
but readme still stays that you can use require
https://github.com/geotiffjs/geotiff.js?tab=readme-ov-file#usage
Hello, thanks for the package. I am trying to export geotiff through commonjs setup. it says that dependency 'quick-lru' does not support require () of es module. Am i doing something wrong here ?