graphql / graphql/graphql-relay-js

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

Open
#387 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.5k
Forks
177
Avg merge
10m
Merged PRs (30d)
1

Description

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

```bash
> 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/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.