-
Notifications
You must be signed in to change notification settings - Fork 152
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
TypeError: util.isRegExp is not a function in NodeJS v23.0.0 #306
Comments
Hi, thanks for letting me know. This is a jsdoc issue, I have reported it and will monitor. |
Given the urgency, and the typically slow response time for jsdoc issues, I forked and patched jsdoc, published a temp hotfix module and released new versions of jsdoc2md and jsdoc-api which use it. Please update your jsdoc2md. Leaving this issue open until an official jsdoc solution is available. |
This issue is fixed in JSDoc 4.0.4. |
Many thanks for the quick fix @hegemonic! This is now fixed and released in jsdoc-api and jsdoc-to-markdown too. |
After upgrading from NodeJS 20 to NodeJS 23, jsdoc2md v9.0.2 throws a
TypeError: util.isRegExp is not a function
error when runningnpx jsdoc2md src/build-index.js > docs/build-index.md
.I have attached the source build-index.js file. The stack trace shows:
The error appears to come from
jsdoc -X src/build-index.js
, validated by the following:The weird thing is that
./node_modules/util/util.js
exists and contains the following function:The error occurs both on my development machine (Windows 11/VSCode) and in the following pipeline:
The previous command
npx vue-docgen
works fine.build-index.js.txt
The text was updated successfully, but these errors were encountered: