Skip to content

error, "tsconfig JSON must be parsed..." #3000

@dynst

Description

@dynst

Search terms

tsconfig compilerOptions

Expected Behavior

Values set with this option will override options read from tsconfig.json. #1891

https://typedoc.org/documents/Options.Configuration.html#compileroptions

Actual Behavior

Only simple boolean options work. tsconfig string options like "moduleResolution" don't.

TypeDoc exiting with unexpected error:
Error: moduleResolution is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram

Steps to reproduce the bug

// typedoc.json
{
  "compilerOptions": {
    "moduleResolution": "bundler"
  }
}

Environment

  • Typedoc version: 0.28.10
  • TypeScript version: 5.9
  • Node.js version:
  • OS:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions