tsdx icon indicating copy to clipboard operation
tsdx copied to clipboard

Type Script 4.7.4

Open kamalkech opened this issue 1 year ago • 1 comments

package.json

"devDependencies": {
    "@size-limit/preset-small-lib": "^8.0.0",
    "@types/react": "^18.0.15",
    "@types/react-dom": "^18.0.6",
    "@typescript-eslint/eslint-plugin": "^5.32.0",
    "@typescript-eslint/parser": "^5.32.0",
    "husky": "^8.0.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "size-limit": "^8.0.0",
    "tsdx": "^0.14.1",
    "tslib": "^2.4.0",
    "typescript": "^4.7.4"
  },
  "resolutions": {
    "**/@typescript-eslint/eslint-plugin": "^5.32.0",
    "**/@typescript-eslint/parser": "^5.32.0",
    "**/jest": "^27.3.1",
    "**/ts-jest": "^27.0.7",
    "**/typescript": "^4.7.4"
  }

the code

const _number: number = 0;
type RulesList =
  | 'required'
  | `min:${typeof _number}`;
  
in playground typescript working good with same version ts but not working on tsdx 

any idea ??

kamalkech avatar Aug 02 '22 21:08 kamalkech

If you are using resolutions in your package.json, you need to be using Yarn as your package manager.

There are a number of other issues in this repository about the super-old TypeScript 3.9.9 inside [email protected] causing problems for people, where this is documented:

  • Yarn Resolutions or npm Overrides: https://github.com/jaredpalmer/tsdx/issues/1149#issuecomment-1272043961
  • pnpm Overrides: https://github.com/jaredpalmer/tsdx/issues/926#issuecomment-882102507

karlhorky avatar Oct 08 '22 12:10 karlhorky