Upgrade to screenfull 6.0.x
pauloxnet opened this issue · 2 comments
A new version of screenfull
has been released:
https://github.com/sindresorhus/screenfull
Not sure about this, since it's a breaking release https://github.com/sindresorhus/screenfull/releases/tag/v6.0.0
This package is now pure ESM.
If you cannot easily move to ESM. Just stay on version 5.2.0. It's stable and fine.
screenfull v6 is a esm only version of screenfull. As the author states in the readme
If you cannot use ESM or need to support older browsers without using transpilation, use version 5.2.0.
As leaflet itself is yet far away from esm (see releases) that is also true for its plugins and for all packages used by this plugins (e.g. screenfull in leaflet.fullscreen).
=> Leaflet.fullscreen cannot use dependencies that are esm only (like screenfull v6).