graphql-relay-js icon indicating copy to clipboard operation
graphql-relay-js copied to clipboard

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

Open DemianD opened this issue 1 year ago • 1 comments

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/

DemianD avatar Aug 18 '22 10:08 DemianD