Closed bunnyhugdev closed 6 months ago
Same issue here, I had to workaround it by using of overrides in package.json back to 2.0.7.
Same issue here too. As this is a dependency for OpenLayers, it breaks angular builds using OL.
try this in line 28
request({ headers, credentials, signal }?: { headers?: HeadersInit, credentials?: RequestCredentials, signal?: AbortSignal }): Promise<void>;
Same issue here, I had to workaround it by using of overrides in package.json back to 2.0.7.
for me it does not work, I use angular 15.2.0
is this the same as #406 and therefore already fixed?
is this the same as #406 and therefore already fixed?
I still have this issue even after that fix
As far as I can see, it was merged, but there was no release afterwards. I would appreciate a quick patch release, as this is the only blogger for us to upgrade from Angular 16 to 17.
(Kind of weird, that Angular 16 to 17 upgrade is blocked for us by Angular's change from TypeScript @~5.1.x
to @~5.2.x
, which breaks another dependency. In my humble opinion Angular shouldn't enforce a TypeScript version and a minor update of TypeScript shouldn't break anything; but it is what it is... 😅 - thanks a lot for this awesome open source library!)
Oh okey, so all we have to do now is wait :D
Hello, you may temporarily use a workaround, setting "skipLibCheck": true
in the tsconfig.json of your angular workspace. This will force the compiler to skip the type checking for all type definitions.
As an alternative you may also edit the file node_modules/geotiff/dist-node/source/client/base.d.ts, changing the line:
request({ headers, credentials, signal }?: object): Promise<void>;
to:
request({ headers, credentials, signal }?: any): Promise<void>;
Be aware that using the second option your changes will be lost if you recreate the node_modules directory.
Same issue here. I'm using Angular 15 and OpenLayers 7.5.2. "skipLibCheck": true
works, but as @softmasters correctly says it is a temporary workaround. Is there any release planned soon?
Is there anything we can help with, to get the correct typing out quickly as an official release? :)
I released v2.1.1
Please let me know if this fixes the issue
Thanks a lot! It works for us 👍
The new release works for me too. "skipLibCheck": true
is no longer needed. Thanks!
Starting in version 2.1.0 of geotiff, there is a Typescript compilation error when importing the geotiff module.
I've verified this is not an issue in 2.0.7. I've attached a small angular app that demonstrates the issue (since that's my current environment). Unzip the project and run
npm install
andng serve
(you'll have to install angular if you do not have it already -npm install -g @angular/cli
.geotiff.zip
Thanks!