You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The existing ESM typedoc configuration still functions correctly with Node v23.0.0
Actual Behavior
Following error is raised, when running typedoc:
[error] Unknown option '__esModule' You may have meant:
out
json
theme
readme
sort
help
locales
exclude
emit
name
version
[error] Unknown option 'default' You may have meant:
out
emit
help
defaultCategory
watch
package.json requirements, mentioned in the node docs1
When running typedoc, the above-mentioned error is raised, because following statement returns an object { __esModule: true, default: { /* typedoc config */ } }1:
Search terms
typedoc.config.js typedoc.config.mjs ECMAScript modules
Expected Behavior
The existing ESM typedoc configuration still functions correctly with Node v23.0.0
Actual Behavior
Following error is raised, when running typedoc:
Steps to reproduce the bug
Prerequisite:
When running typedoc, the above-mentioned error is raised, because following statement returns an object
{ __esModule: true, default: { /* typedoc config */ } }
1:typedoc/src/lib/utils/options/readers/typedoc.ts
Line 89 in 2c73a28
Following Workaround can be used to avoid the issue:
Environment
Footnotes
https://nodejs.org/docs/latest/api/modules.html#loading-ecmascript-modules-using-require ↩ ↩2
The text was updated successfully, but these errors were encountered: