Skip to content

QN type errors #5210

@traumschule

Description

@traumschule

README

$ yarn workspace query-node-mappings build # OR
$ yarn workspace @joystream/metadata-protobuf build
yarn workspace v1.22.22
yarn run v1.22.22
$ rm -rf lib && tsc --build tsconfig.json
error TS2688: Cannot find type definition file for 'hapi__catbox'.
  The file is in the program because:
    Entry point for implicit type library 'hapi__catbox'

error TS2688: Cannot find type definition file for 'hapi__shot'.
  The file is in the program because:
    Entry point for implicit type library 'hapi__shot'

error TS2688: Cannot find type definition file for 'minimatch'.
  The file is in the program because:
    Entry point for implicit type library 'minimatch'


Found 3 errors.

$ yarn workspace query-node-root build
Found 430 errors in 215 files.
build-errors.log

$ node --version
v20.19.5

With node 18 yarn workspace query-node-root build fails at

error [email protected]: The engine "node" is incompatible with this module. Expected version "20 || >=22". Got "18.20.8"
error Found incompatible module.

graphql-server

$ docker logs graphql-server
>   "Error: Unable to infer GraphQL type from TypeScript reflection system.
You need to provide explicit type for parameter #0 of 'announcingPeriodStartedEvents' of 'AnnouncingPeriodStartedEventResolver' class.",

NoExplicitTypeError: Unable to infer GraphQL type from TypeScript reflection system. You need to provide explicit type for parameter #0 of 'announcingPeriodStartedEvents' of 'AnnouncingPeriodStartedEventResolver' class.
    at Object.findType (/joystream/node_modules/type-graphql/dist/helpers/findType.js:19:15)
    at Object.getParamInfo (/joystream/node_modules/type-graphql/dist/helpers/params.js:10:49)
    at /joystream/node_modules/type-graphql/dist/decorators/Args.js:12:25
    at /joystream/query-node/generated/graphql-server/dist/src/modules/announcing-period-started-event/announcing-period-started-event.resolver.js:27:37
    at DecorateProperty (/joystream/node_modules/reflect-metadata/Reflect.js:553:33)
    at Reflect.decorate (/joystream/node_modules/reflect-metadata/Reflect.js:123:24)
    at __decorate (/joystream/query-node/generated/graphql-server/dist/src/modules/announcing-period-started-event/announcing-period-started-event.resolver.js:19:92)
    at /joystream/query-node/generated/graphql-server/dist/src/modules/announcing-period-started-event/announcing-period-started-event.resolver.js:238:5
    at Object.<anonymous> (/joystream/query-node/generated/graphql-server/dist/src/modules/announcing-period-started-event/announcing-period-started-event.resolver.js:268:2)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions