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

TypeError: Cannot read properties of undefined (reading 'control') #505

Open
predefinedx opened this issue Jul 16, 2024 · 0 comments
Open

Comments

@predefinedx
Copy link

predefinedx commented Jul 16, 2024

Hi!

So for a fair while now, I'm getting an error in console, when using ol-layerswitcher package
image

Which points to this line in node_modules\ol-layerswitcher\dist\ol-layerswitcher.js-
image

Everything seems to work as intended, but this error in console is there at all times (even when I'm not in the part of the app, that has map involved).
Is this a problem on my end? If it is- what could cause the issue?
If it's not a common issue, can someone provide me with a working example, which does not produce this error? Giving an minimal reproduction from my side would be quite difficult, but if it will be needed, i can try to invest time to create an minimal reproduction.

Thank you all in advance!

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