-
Notifications
You must be signed in to change notification settings - Fork 43
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
Cannot find module #27
Comments
We ended up using |
What were the code changes you patched? |
@PerryRylance , are you able to use this with maplibregl? It kind of works but I'm getting a |
I haven't tried with maplibregl, sorry. Here's the patch we used:
|
@PerryRylance Thank you for the patch. I just had one question. In this piece of code, what did you replace DrawPolygon with ?
_Uncaught TypeError: mapbox_mapbox_gl_draw__WEBPACK_IMPORTED_MODULE_0___default(...).modes.draw_polygon.call is not a function |
I've been using this for a while in a React build without issue, but when I try to use it inside Angular, we're seeing this
Error: Module not found: Error: Can't resolve '@mapbox/mapbox-gl-draw/src/modes/draw_polygon'
Error: Module not found: Error: Can't resolve '@mapbox/mapbox-gl-draw/src/constants'
This seems to be correct in that there is no
/src
directory, but that doesn't bother the React build.I can see there are related issues that were opened and then closed again, if someone could point me to a solution that would be great. I can see folks have had similar issues but with no solution posted in the closed issues.
The text was updated successfully, but these errors were encountered: