Repository navigation
Labels
Milestone
Description
See #11481and in particular this comment
We need to make MapStore compatible with future versions of NodeJS.
From a first test, only docma build looks to be fail. In order to make MapStore compatible with Node 22 (and next), we need to find a solution for Docma documentation.
Docma project has been abandoned, and even updating to the latest version do not work with Node 22, because of some deprecation warnings due to jsdoc-x lib (from the same author, and looks abandoned too).
Error: (node:347738) [DEP0055] DeprecationWarning: The `util.isRegExp` API is deprecated. Please use `arg instanceof RegExp` instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:347738) [DEP0047] DeprecationWarning: The `util.isDate` API is deprecated. Please use `arg instanceof Date` instead.
(node:347738) [DEP0048] DeprecationWarning: The `util.isError` API is deprecated. Please use `ObjectPrototypeToString(e) === "[object Error]" || e instanceof Error` instead.
Executed JSDoc Command: jsdoc -X
[...]
with JSON configuration: {"tags":{"allowUnknownTags":true,"dictionaries":["jsdoc","closure"]},"source":{"includePattern":".+\\.js(doc|x)?$","excludePattern":"(^|\\/|\\\\)_"},"templates":{"cleverLinks":false,"monospaceLinks":false},"plugins":["plugins/markdown"]}
at ChildProcess.<anonymous> (/home/offtherailz/work/projects/mapstore/MapStore2/node_modules/jsdoc-x/src/lib/helper.js:141:54)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1101:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
Possible solutions are:
- Isolate the docma build in a separate project (e.g.
build/docs/package.json, or separate program to run withnpxto build ms documentation) - Use pure JSDoc
- Fork docma and jsdoc-x to update
- Use another tool for building documentation
(wip):
NODE_OPTIONS="--no-deprecation" npm run jsdoc:build works!!
Activity
Ansita20 commentedon Oct 14, 2025
@offtherailz Can I please work on this issue.
offtherailz commentedon Oct 15, 2025
Hi @Ansita20 . We are still investigating on this issue, probably the only real obstacle is the JSDOC.
I proposed some alternatives, but we still have to investigate on which solution is better on strategic an technical side.
I'd planned to hopefully finalize the investigation within the end of the month, or the beginning on the next.
If in the meantime you have some alternatives, results of your investigation or anything to share, feel free to propose or share your results. It can be for sure helpful to take a decision.
Then, after we decided how we should do this task, if you want to contribute, we can stay in touch.
In the meantime thank you for your interest in contributing MapStore.
Ansita20 commentedon Oct 15, 2025
@offtherailz yes sure i would like to work on this issue...I hope to solve this issue and be useful
geosolutions-it#11577 Doc build fixed for node 22. Build strategy
offtherailz commentedon Oct 21, 2025
@Ansita20 we should have solved relatvievly quickly after the investigation to find strategic approach.
A PR is pending by my side. Thank you anyway for your offer to contribute 👍 ❤️
#11577 Doc build fixed for node 22. Build strategy (#11611)