Skip to content

Compile error: 'NotSupportedTSVersion.d.ts' is not a module. #387

@DemianD

Description

@DemianD

When upgrading from '0.9.0' to '0.10.0', we are getting the following build error:

> tsdx build --target node

(typescript) Error: /Users/demian/skedify/backend-mono/packages/pagination-package/src/connection-args.ts(2,60): 
semantic error TS2306: File 'x/packages/pagination-package/node_modules/graphql-relay/NotSupportedTSVersion.d.ts' is not a module.

This is because of this section in the package.json file:

  "typesVersions": {
    ">=4.1.0": {
      "*": [
        "*"
      ]
    },
    "*": {
      "*": [
        "NotSupportedTSVersion.d.ts"
      ]
    }
  },

Our TypeScript version is ^4.7.4

How we build:

We make use of TSDX to build our packages: https://tsdx.io/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions