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

@mapstore/patcher not found #15

Open
mgogh opened this issue Sep 29, 2021 · 1 comment
Open

@mapstore/patcher not found #15

mgogh opened this issue Sep 29, 2021 · 1 comment

Comments

@mgogh
Copy link

mgogh commented Sep 29, 2021

Hi,

I'm trying to create an Extension where I need to import "getNormalizedLatLon" method from '@mapstore/utils/CoordinatesUtils'.

I've just clone the MapStoreExtension repo and follow what is written in the documentation.
I then add the following line in the "js/extension/plugins/Extension.jsx"
import { getNormalizedLatLon } from '@mapstore/utils/CoordinatesUtils';

I directly encounter an error when I try to build the extension :

Module not found: Error: Can't resolve '@mapstore/patcher' in '.\MapStoreExtension\MapStore2\web\client\utils'
@ ./MapStore2/web/client/utils/CoordinatesUtils.js 32:0-46 1102:23-36
@ ./js/extension/plugins/Extension.jsx 6:0-71
@ container entry

How can I fix this issue ?

Regards,

@tdipisa tdipisa assigned offtherailz and tdipisa and unassigned tdipisa Dec 6, 2021
@offtherailz
Copy link
Member

Please look if you have this in your extension repo.
d5f8006#diff-53f091845e2c3b0fb24405f3cb4366be163c31f85e29fcfed00fdc70f43fe06bR13

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

No branches or pull requests

3 participants