Skip to content

bug: Migrate tsconfig moduleResolution from deprecated "node" to "bundler" #103

@Ayurshi-Singh

Description

@Ayurshi-Singh

Describe the bug

The CI pipeline (check-types step) fails with the following error when running npx tsc --noemit:
tsconfig.json(5,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0.
This occurs because the project was upgraded to TypeScript 6.x (^6.0.2), which deprecates the "moduleResolution": "node" (alias for node10) option. The previous workaround "ignoreDeprecations": "5.0" is no longer valid for TS 6.x deprecations. Setting "ignoreDeprecations": "6.0" suppresses the error but causes ESLint strict type-checked rules to flag it as a code smell.

Steps To Reproduce

The CI pipeline (check-types step) fails with the following error when running npx tsc --noemit:
tsconfig.json(5,23): error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0.

Expected Behaviour

  • npx tsc --noemit passes without errors
  • npx eslint --quiet passes without errors
  • CI pipeline check-types step passes
  • No runtime regressions in the UI application

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions