Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next version with OL5 and definitely typed has compile errors #235

Open
wflemingnz-retired opened this issue Jun 3, 2019 · 0 comments
Open

Comments

@wflemingnz-retired
Copy link

wflemingnz-retired commented Jun 3, 2019

I have installed:

ngx-openlayers 1.0.0-next.7
ol 5.3.1
@types/ol 5.3.0

There are numerous compile errors ie:

ERROR in node_modules/ngx-openlayers/lib/layers/layer.component.d.ts(2,10): error TS2305: Module '"C:/source/git/Titan2/TitanApp/node_modules/@types/ol/events"' has no exported member 'Event'.

This occurs as Event is not exported from .\node_modules@types\ol\events\index.d.ts

Similarly:

node_modules/ngx-openlayers/lib/layers/layervectortile.component.d.ts(2,10): error TS2305: Module '"C:/source/git/Titan2/TitanApp/node_modules/@types/ol/layer/VectorTile"' has no exported member 'RenderType'.

This looks like it should be using VectorTileRenderType as in .\node_modules@types\ol\layer\VectorTile.d.ts

There are many other similar errors.

Am I missing something? Should I be using the definitely typed types (I notice they are quite new)?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant