Skip to content

[Improvement] Fix tsconfig.app.json including Node types in browser build #198

@d-oit

Description

@d-oit

Description

tsconfig.app.json (line 8) includes "types": ["vite/client", "node"]. The "node" type should not be in the browser app configuration — it exposes Node.js APIs that do not exist in the browser.

Current Config

{
  "compilerOptions": {
    "types": ["vite/client", "node"]
  }
}

Fix

{
  "compilerOptions": {
    "types": ["vite/client"]
  }
}

The node type is already available in tsconfig.node.json for the CLI/scripts.

Acceptance Criteria

  • tsconfig.app.json only includes vite/client types
  • No Node.js API usage in browser code that would break
  • tsc --noEmit still passes

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: backendBackend/data layerduplicateThis issue or pull request already existsimprovementImprovement to existing featurepriority: lowLow prioritytech-debtTechnical debt

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions