openlayers / openlayers

OpenLayers
https://openlayers.org
BSD 2-Clause "Simplified" License
11.08k stars 3k forks source link

Openlayers 7.2.2 no working #14496

Open pookdeveloper opened 1 year ago

pookdeveloper commented 1 year ago

Describe the bug Latest version 7.2.2 doesn't compile

To Reproduce install version 7.2.2 My typescript version is: "typescript": "~4.9.5"

Expected behavior A clear and concise description of what you expected to happen. image

ahocevar commented 1 year ago

To make these errors go away, you can either add skipLibCheck: true to the compilerOptions of your tsconfig.json, or run npm install @types/topojson-specification.

mistic100 commented 2 months ago

Could you update the dependencies of openlayers to include thoses types ?

skipLibCheck is not a viable solution (without the possibility the disable for specific libs, which TS does not allow yet)

having to manually manage a third-third-party dependencies is cumbersome

ahocevar commented 2 months ago

@mistic100 https://github.com/openlayers/openlayers/issues/14496#issuecomment-1425548322 did not work for you?

mistic100 commented 2 months ago

Yes it does but it should not be necessary.

ahocevar commented 2 months ago

@mistic100 You could submit a pull request that moves @types/topojson-specification from the devDependencies to the dependencies. Then it won't be necessary in the future any more. Same for @types/geojson.