Hi everyone,
I am using the Leaflet component from the Forge in ODC. While the map works correctly while the screen is active, a crash occurs specifically when navigating to another screen. This issue started appearing recently without any changes to the core logic of my application.
Error Code: OS-CLRT-00000 - Delete of an unqualified identifier in strict mode.
Context:
The error is triggered during the screen transition.
It seems to be related to a cleanup script (likely in the OnDestroy event) where a variable is being deleted incorrectly for JavaScript "Strict Mode".
The map itself functions perfectly until the moment of navigation.
I haven't made any changes to the implementation, and it was working fine until recently, so it seems like a regression or an issue with the component's internal cleanup logic.
Has anyone else encountered this or knows a workaround?
Thanks in advance!
Hi @Paula Rosa González Páez
To help the community, helping you could you please share an oml with your use case being replicated (without any business information ofc) so we can try to look into the same use case? It would be super useful. Also, please share what you've already tried.
Cheers,GM
Hi,
To replicate the error, what you need to do is, from the TestMap screen, press the "Go to next screen" button and the error will then appear on screen.
The error occurs during navigation from the screen containing the map to another screen (in this case TestScreen).
The error is in the component's code, so it needs to be the owner to fix it.However, is there any reason why you're not using the Leaflet map from the supported component OutSystems Maps?