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

Unminified version? #1480

Closed
CalebCurry opened this issue Apr 12, 2024 · 1 comment · Fixed by #1483
Closed

Unminified version? #1480

CalebCurry opened this issue Apr 12, 2024 · 1 comment · Fixed by #1483
Assignees

Comments

@CalebCurry
Copy link

Hi there, general question here as I have been running in to errors within the geoman library. The errors are not very user friendly

leaflet-geoman.js:2 Uncaught TypeError: Cannot read properties of undefined (reading 'optIn')
    at NewClass.t (leaflet-geoman.js:2:222109) 

all on line 2
Using the browser tools I was able to find these lines:

addInitHooks() {
    function t() {
        this.pm = void 0,
        L.PM.optIn ? this.options.pmIgnore === !1 && (this.pm = new L.PM.Map(this)) : this.options.pmIgnore || (this.pm = new L.PM.Map(this)),
        this.pm && this.pm.setGlobalOptions({})
    }

Where it immediately sets pm to undefined and then tries to access a property on it (throwing an error).

However, I am unclear the best way to map this to the original source code of leaflet-geoman to see what is going on. wondering if you provide a non-minified library for debugging? or a variation of the build script that does not minify

mscno added a commit that referenced this issue Apr 15, 2024
@mscno mscno self-assigned this Apr 15, 2024
mscno added a commit that referenced this issue Apr 15, 2024
@mscno
Copy link
Contributor

mscno commented Apr 16, 2024

Source maps will be added from next release

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

Successfully merging a pull request may close this issue.

2 participants