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 importing into my React component - We need React Support! #1390

Open
jarodsim opened this issue Aug 12, 2023 · 1 comment
Open

Error importing into my React component - We need React Support! #1390

jarodsim opened this issue Aug 12, 2023 · 1 comment
Labels

Comments

@jarodsim
Copy link

We need a React Js support, please.
When i add the import to my react component i got this error:
image

Here is the import in my react component:
image
Yes, just importing it already breaks everything

@jarodsim jarodsim added the bug label Aug 12, 2023
@jarodsim
Copy link
Author

Ok, in this repo i has the resolution
https://github.com/jarodsim/react-with-leaflet-distorcable-image

u must import manualy

u need to add the leaflet-toolbar lib in ur project to

import L from "leaflet";
import "leaflet-toolbar";
import "leaflet-distortableimage";
import "leaflet-toolbar/dist/leaflet.toolbar.css";
import "leaflet-distortableimage/dist/leaflet.distortableimage.css";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant