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

Invalid module name in augmentation #99

Open
craigstanton opened this issue Jun 28, 2023 · 0 comments
Open

Invalid module name in augmentation #99

craigstanton opened this issue Jun 28, 2023 · 0 comments

Comments

@craigstanton
Copy link

I'm trying to use GeometryUtil.closestlayer in Angular with Leaflet 1.7.1. Whenever I add the GeometryUtil import I get these error among others

Invalid module name in augmentation. Module 'leaflet' resolves to an untyped module at '........[REDACTED]...../node_modules/leaflet/dist/leaflet-src.js', which cannot be augmented.

this is how I do the import

import * as L from 'leaflet';
import GeometryUtil from 'leaflet-geometryutil';

This is regardless of whether I actually use the library in the code

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

1 participant