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

"Module not found" error when importing from npm #33

Open
barbalex opened this issue Feb 6, 2017 · 4 comments
Open

"Module not found" error when importing from npm #33

barbalex opened this issue Feb 6, 2017 · 4 comments

Comments

@barbalex
Copy link

barbalex commented Feb 6, 2017

I did:

npm install --save leaflet.coordinates

Then in "CoordinatesControl.js":

import 'leaflet'
import 'leaflet.coordinates'

This results in:

Error in ./src/components/Projekte/Karte/CoordinatesControl.js
Module not found: 'leaflet.coordinates'

What could I be missing?

@heyanctil
Copy link

Have you found a solution? Another library? Thanks

@barbalex
Copy link
Author

This is the module I ended up building myself: https://github.com/barbalex/apf2/tree/master/src/components/Projekte/Karte/CoordinatesControl

@heyanctil
Copy link

heyanctil commented Oct 13, 2017

@barbalex Thanks I will take a look!

@barbalex
Copy link
Author

Here the module in action:
2017-10-14_00h53_44

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