Skip to content

The file specified in tsconfig.json not found (configDir not supported?) #368

@InSyncWithFoo

Description

@InSyncWithFoo

Minimal reproducible example:

  • apps:

    • app:
      • src/styles.module.css:

        .foo { color: red; }
      • tsconfig.json:

        { "extends": ["../../tsconfig.a.json"] }
      • package.json:

        { "name": "app", "version": "0.0.0" }
  • package.json:

    {
      "name": "test",
      "version": "0.0.0",
      "workspaces": ["apps/*"],
      "devDependencies": {
        "@css-modules-kit/codegen": "^0.10.0",
        "typescript": "^6.0.3"
      }
    }
  • tsconfig.json:

    {
      "include": ["${configDir}/**/*"],
      "cmkOptions": { "enabled": true }
    }

Commands run:

$ cd apps/app
$ npx cmk
error: The file specified in tsconfig.json not found.

This is likely because of the ${configDir} template variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions