Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DemianD opened this issue Aug 18, 2022 · 1 comment
Open

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

DemianD opened this issue Aug 18, 2022 · 1 comment

Comments

@DemianD
Copy link

DemianD commented Aug 18, 2022

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 DemianD changed the title 'NotSupportedTSVersion.d.ts' is not a module. Compile error: 'NotSupportedTSVersion.d.ts' is not a module. Aug 18, 2022
@productdevbook
Copy link

iam new write library ts-relay-cursor-paging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants