Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
calixfar opened this issue Dec 5, 2019 · 1 comment
Open

Comments

@calixfar
Copy link

calixfar commented Dec 5, 2019

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

@vitia-fritelle
Copy link

Is this error still open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants