geosolutions-it / MapStoreExtension

A MapStore project to develop mapstore extensions
Other
1 stars 20 forks source link

@mapstore/patcher not found #15

Open mgogh opened 2 years ago

mgogh commented 2 years ago

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,

offtherailz commented 2 years ago

Please look if you have this in your extension repo. https://github.com/geosolutions-it/MapStoreExtension/commit/d5f8006ecdab52b954d4918083fcc2b73e3cc294#diff-53f091845e2c3b0fb24405f3cb4366be163c31f85e29fcfed00fdc70f43fe06bR13