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

Uncaught ReferenceError: L is not defined #119

Open
paulcanning opened this issue Dec 7, 2017 · 4 comments
Open

Uncaught ReferenceError: L is not defined #119

paulcanning opened this issue Dec 7, 2017 · 4 comments

Comments

@paulcanning
Copy link

I'm in an odd situation. I have this library working with Leaflet Widget (https://github.com/bforchhammer/leaflet_widget) locally, and it works perfectly.

But when deployed to a remote development server, I get this error.

The library is in the correct location and is being called (as evident by it working locally) so I'm at a loss for what to do.

The code on the remote server is the same as I have locally, as it comes from a repo.

@arthur-e
Copy link
Owner

arthur-e commented Dec 7, 2017

L, here, refers to the Leaflet library, I believe. Perhaps the path to the Leaflet library is not resolved on the remote server?

@paulcanning
Copy link
Author

I'll triple check, but Leaflet was working fine previously (it's being used for user facing maps to show multiple markers).

I'm not sure why it wouldnt be able to find the leaflet library on the remote server though?

@arthur-e
Copy link
Owner

arthur-e commented Dec 7, 2017

You can use the developer's console to figure out on what path your remote deployment thinks Leaflet should be found. (For example, under the "Newtork" tab in Google Chrome's developer window.)

@paulcanning
Copy link
Author

I will have to check tomorrow, but to reiterate, everything works locally.

I'll do some digging.

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

2 participants