Error while building mapstore utcDateWrapper

33 views
Skip to first unread message
Assigned to surendhar.d...@geosolutionsgroup.com by lorenzo...@geosolutionsgroup.com

Florent Gravin

unread,
Feb 3, 2023, 10:24:02 AM2/3/23
to mapstore-users
Hi list,

Tried with node 10.16.3, 12.0.0, 12.21.0, same results
While building the app (I use the build.sh from georchestra-mapstore)

I have this error.
Anyone would have any a hint please ?
Pb with node version or something ?
Thanks f or help

modules by path ./themes/default/*.less 50 bytes (javascript) 821 KiB (css/mini-extract)
  ./themes/default/theme.less 50 bytes [built] [code generated]
  css ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./node_modules/less-loader/dist/cjs.js!./themes/default/theme.less 821 KiB [code generated]
13 modules

ERROR in ./MapStore2/web/client/components/misc/enhancers/utcDateWrapper.js 35:2
Module parse failed: Unexpected token (35:2)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|   } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|   return compose(withPropsOnChange([dateProp], _ref /* props */
>   => {
|     let {
|       [dateProp]: date,
 @ ./MapStore2/web/client/components/data/query/DateField.jsx 14:0-65 24:26-40
 @ ./MapStore2/web/client/components/data/query/GroupField.jsx 16:0-36 136:43-52 140:43-52 148:43-52
 @ ./MapStore2/web/client/components/data/query/QueryBuilder.jsx
 @ ./MapStore2/web/client/plugins/QueryPanel.jsx 24:0-65 136:3-15
 @ ./MapStore2/web/client/product/plugins.js
 @ ./js/plugins.js 9:0-55 22:19-41 24:12-34 34:12-35
 @ ./js/app.jsx 12:0-32 136:7-22 141:12-28

Florent Gravin

unread,
Feb 23, 2023, 9:43:15 AM2/23/23
to mapstore-users
I am surprised to be the only one having this issue

What is the recomanded version of node, npm and java to build mapstore ?

Thanks

Florent Gravin

unread,
Apr 6, 2023, 6:07:21 AM4/6/23
to mapstore-users
Hi all,

Actually I have resolved my problem with a fresh git clone and build.
I suspect conflicts between npm dependencies and npm versions used in the repo. A npm clear + deletion of ./node_modules and package-lock was not enough though.

Sorry for the noise.

Lorenzo Natali

unread,
Apr 7, 2023, 8:25:49 AM4/7/23
to mapstore-users
No problem,
thanks to you for using MapStore. 

Reply all
Reply to author
Forward
0 new messages