Looking to integrate the geotiff library with Angular 6.1.0 and TypeScript 2.9.2.
Installed it using
npm i geotiff
Encountering the following error in the browser console:
Uncaught ReferenceError: exports is not defined at geotiff.js:3
After researching this issue, attempted modifying the tsconfig.json
file.
Changed module
to es5
, es6
, none
. No success.
Altered target
to es5
, es6
. Didn't resolve the issue.
Tried enabling allowJs
. Still facing the error.
Any suggestions on how to fix this error?