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

Error: TypeError: can't define property "Promise": Object is not extensible ( leaflet.ajax.js:513:1 ) #49

Open
scottydelta opened this issue Jul 18, 2017 · 7 comments

Comments

@scottydelta
Copy link

I am getting error on this code/setup, am I missing something?

<html>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.1.0/leaflet-src.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-ajax/2.1.0/leaflet.ajax.js"></script>
</body>
</html>
@calvinmetcalf
Copy link
Owner

what is your environment you're running this in?

@Minganie
Copy link

Minganie commented Jul 18, 2017

I have the same issue. For my part I put the scripts in the head section. I am running it in Firefox 54.0.1 (32-bit). I get the same error in Chrome 59.0.3071.115 64 bit. Do you need other details about the environment?

@pmacMaps
Copy link

I think this error was introduced at Leaflet 1.1.0. I noticed it on an app I recently upgraded, but don't notice it when using 1.0.3.

@calvinmetcalf
Copy link
Owner

yeah I have a pull request on leaflet to fix this regression

@scottydelta
Copy link
Author

I have downgraded my Leaflet to 1.0.3 for now to make it work. Thanks @calvinmetcalf for a quick response.

@asecondwill
Copy link

@calvinmetcalf - can you ref that pull request here please? want to know if i can go with 1.2 or back to 1.0.3

@asecondwill
Copy link

just tried it with leaflet 1.2 - works for me.

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

No branches or pull requests

5 participants