Skip to content

Crash on DivOverlay.js when using Leaflet as esm moduleΒ #8533

Closed
@wwwouaiebe

Description

Checklist

  • I've looked at the documentation to make sure the behavior isn't documented and expected.
  • I'm sure this is an issue with Leaflet, not with my app or other dependencies (Angular, Cordova, React, etc.).
  • I've searched through the current issues to make sure this hasn't been reported yet.
  • I agree to follow the Code of Conduct that this project adheres to.

Steps to reproduce

Go to the src file src/layer/DivOverlay.js at line 45 and remove the L. before LatLng so the complete line will be

if (options && (options instanceof LatLng || Util.isArray(options))) {...

Leaflet crash when directly imported using import directive.

Expected behavior

Everything normal...

Current behavior

The program crash...

Minimal example reproducing the issue

No response

Environment

  • Leaflet version: 1.9.2
  • Browser (with version): Firefox Nightly 107
  • OS/Platform (with version): Windows 10

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    blockerCritical issue or PR that must be resolved before the next releasebug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions