Skip to content
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

How can I solve "The provided tsconfig file looks like a solution style tsconfig, which is not supported in watch mode" #2211

Closed
inkasadev opened this issue Mar 27, 2023 · 1 comment
Labels
question Question about functionality

Comments

@inkasadev
Copy link

Search terms

watch mode, monorepo

Question

Hi All!

So, I'm trying to run typedoc --watch in a monorepo repository but I'm facing the following error:

The provided tsconfig file looks like a solution style tsconfig, which is not supported in watch mode

In the root typedoc.json I have the following config:

{
  "$schema": "https://typedoc.org/schema.json",
  "name": ...,
  "out": "docs",
  "media": "./media",
  "entryPointStrategy": "packages",
  "entryPoints": ["packages/lib"],
  "sort": ["source-order"],
  "categorizeByGroup": false,
  "searchCategoryBoosts": {
    "Base": 1.2,
    "Inputs": 2
  },
  "visibilityFilters": {},
  "excludePrivate": true,
  "includeVersion": true,
  "excludeNotDocumented": true
}

In the packages/lib folder I have the following configs:

package.json

{
  "name": ...,
  "version": "0.0.1",
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "type": "module",
  "files": [
    "dist/*"
  ],
  "exports": { ... },
  "typesVersions": { ... },
  "typedoc": {
    "entryPoint": "./src/typedocs.ts",
    "tsconfig": "./tsconfig.json"
  },
  "scripts": {
    "dev": "tsup --watch",
    "build": "tsup",
    "docs:build": "typedoc",
    "docs:watch": "typedoc --watch"
  },
  "license": "MIT",
  "devDependencies": {
    "tsup": "^6.7.0",
    "typescript": "^5.0.2"
  }
}

tsconfig.json

{
  "compilerOptions": {
    "target": "ESNext",
    "useDefineForClassFields": true,
    "module": "esnext",
    "moduleResolution": "node",
    "lib": ["ESNext", "DOM"],
    "strict": true,
    "sourceMap": true,
    "isolatedModules": true,
    "esModuleInterop": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noImplicitReturns": true,
    "skipLibCheck": true,
    "outDir": "./dist",
    // "outFile": "./dist/index.d.ts",
    "rootDir": "./src",
    "baseUrl": "./src",
    "declaration": true,
    "declarationDir": "./dist/",
    "emitDeclarationOnly": true,
    "allowJs": false,
    "paths": { ... }
  },
  "include": ["src"]
}

./src/typedocs.ts is a series of exports (I'm developing a multiple entry points lib)

Please, what am I doing wrong? 😥

Cheers,

@inkasadev inkasadev added the question Question about functionality label Mar 27, 2023
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Mar 27, 2023

#1772 - not yet supported

@Gerrit0 Gerrit0 closed this as completed Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about functionality
Projects
None yet
Development

No branches or pull requests

2 participants