Reference error in ol-ext 4.0.19
Closed this issue · 5 comments
Hello,
When using version 4.0.19
of ol-ext we got some reference errors when using the LayerSwitcher import.
I am using webpack to compile my package and node version 20.11.1
.
Due to lack of access to some code online tools, I am not able to provide an example here.
I only can say that ol-ext version 4.0.18
is working.
Based on the semantic versioning specification the bugfix to 4.0.19
should not cause breaking changes, so that I think that this is a bug in the library.
If you need further information, don't hesitate to ask and I will provide you as much as I can.
Best Regards,
Sebastian
You have to install Openlayers in your project.
npm install ol
Ol is a peer dependency in ol-ext, you should have a warning on your console. It let's you install the ol version you want.
@Viglino of course we have Openlayers defined as dependency with version ^9.0.0
. As mentioned in my first post, with 4.0.18
everything worked fine and the update to 4.0.19
breaks our package builds.
You're right the file extension was missing...
Fixed in the last commit
@Viglino thanks for fixing this so fast.
We are looking forward for the next release :-)
Best Regards,
Sebastian