iTwin / imodels-clients

Monorepo for iModels API clients
MIT License
6 stars 2 forks source link

imodels-client-authoring: Cannot find module 'reflect-metadata' #276

Open paulius-valiunas opened 3 weeks ago

paulius-valiunas commented 3 weeks ago

This client seems to depend on reflect-metadata, but that's not mentioned in its package.json. This means the client doesn't work in pnpm workspaces without a patch:

  "pnpm": {
    "packageExtensions": {
      "@itwin/imodels-client-authoring@^5.8.1": {
        "peerDependencies": {
          "reflect-metadata": "^0.1.14"
        }
      }
    }
  }

Alternatively, maybe these clients could migrate to the "official" stage 3 decorators that were added in Typescript 5.0: https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#decorators