upgrading project from mapstore 2021.01.01 to 2021.02.00

24 views
Skip to first unread message

Stefan Overkamp

unread,
Dec 5, 2021, 10:53:05 AM12/5/21
to mapstore-developers
Hi,

I made a custom project with mapstore 2021.01.01.
Using the migration guidelines
https://mapstore.readthedocs.io/en/latest/developer-guide/mapstore-migration-guide/
I failed on npm start with error:

ERROR in ./MapStore2/web/client/observables/config/getPluginsConfig.js
4:0-54
Module not found: Error: Can't resolve '@mapstore/patcher' in
'D:\projekte\mapstore\mapstore_velbert\MapStore2\web\client\observables\config'
 @ ./MapStore2/web/client/epics/contextcreator.js 37:0-70 295:103-119
 @ ./MapStore2/web/client/plugins/ContextCreator.jsx 17:0-49 140:2-7
 @ ./MapStore2/web/client/product/plugins.js 34:26-70
 @ ./js/app.jsx 52:16-60

ERROR in ./MapStore2/web/client/utils/ConfigUtils.js 20:0-54
Module not found: Error: Can't resolve '@mapstore/patcher' in
'D:\projekte\mapstore\mapstore_velbert\MapStore2\web\client\utils'
 @ ./js/dashboardEmbedded.jsx 8:0-87 15:0-13 16:0-13 23:0-25

How to install @mapstore/patcher ?

Doing npm install I receive more errors

D:\projekte\mapstore\mapstore_velbert>npm install @mapstore/patcher
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: mapstore...@1.0.0
npm ERR! Found: esl...@7.8.1
npm ERR! node_modules/eslint

Is it better to start a blank new custom project?
Where do I start to unserstand the build and configuration process?
Any hints on further reading understanding webpack and npm in the
context of mapstore?

Thanks

Stefan

--
Dipl. Ing. Stefan Overkamp
over...@posteo.de

Stefan Overkamp

unread,
Dec 5, 2021, 12:13:13 PM12/5/21
to mapstore-developers
Hi,

"@mapstore/patcher": path.resolve(__dirname, "node_modules", "@mapstore", "patcher"), in webpack.config.js did the trick. Thanks to Lorenzo Natali Stefan
-- 
Dipl. Ing. Stefan Overkamp
Laakmannsbusch 44, 42555 Velbert 
tel.: 0177 / 79 76 159
over...@posteo.de
Reply all
Reply to author
Forward
0 new messages