Error in scatter plot of dash leaflet when it is in a multi-page app

Hi everybody
I am trying to create a map with scatter plot of dash leaflet in a multi-page app, but I get the error:

No match for [dashExtensions.default.function1] in the global window object.

(This error originated from the built-in JavaScript code that runs Dash apps. Click to see the full stack trace or open your browser’s console.)

I replicated the example of multi-page app with Pages (https://dash.plotly.com/urls) and the example of Scatter Plot (Dash ), they it work separately, but when I put the scatter plot on one page of the multi-page app, it does not work.

Could you advise how to solve that?