Skip to content

Error TS2698 Spread types may only be created from object types. #425

@calixfar

Description

@calixfar

Error while trying to link store-graphql app.

The error is presented in the following route:

../../../cache/link/link_tiendasel_tiendasel/[email protected]/src/node/resolvers/document/index.ts:47:13

The solution was simple, it consists in adding to the constant data of line 45 the type of data any. The result is as follows:

const data: any = await masterdata.getSchema (dataEntity, schema);

When trying to link again the error disappears

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