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

Typescript 2.0 #745

Closed
danbucholtz opened this issue Oct 5, 2016 · 1 comment
Closed

Typescript 2.0 #745

danbucholtz opened this issue Oct 5, 2016 · 1 comment

Comments

@danbucholtz
Copy link

When I install this lib in a Typescript 2.0 app, I am stuck due to @types definitions missing.

Here is the output from Angular NGC.

Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/middleware.d.ts:5:14: Cannot find name 'RequestInit'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/afterware.d.ts:1:1: Cannot find type definition file for 'isomorphic-fetch'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/afterware.d.ts:3:15: Cannot find name 'IResponse'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/afterware.d.ts:4:14: Cannot find name 'RequestInit'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:1:1: Cannot find type definition file for 'typed-graphql'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:2:1: Cannot find type definition file for 'chai'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:3:1: Cannot find type definition file for 'isomorphic-fetch'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:23:38: Cannot find name 'GraphQLResult'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:30:46: Cannot find name 'GraphQLResult'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:34:12: Cannot find name 'RequestInit'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:42:14: Cannot find name 'RequestInit'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:45:15: Cannot find name 'IResponse'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:46:14: Cannot find name 'RequestInit'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:52:12: Cannot find name 'RequestInit'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:55:37: Cannot find name 'RequestInit'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:58:77: Cannot find name 'IResponse'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:59:38: Cannot find name 'GraphQLResult'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:65:12: Cannot find name 'RequestInit'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/networkInterface.d.ts:68:110: Cannot find name 'RequestInit'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/queries/getFromAST.d.ts:1:1: Cannot find type definition file for 'typed-graphql'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/queries/getFromAST.d.ts:3:63: Cannot find name 'OperationDefinition'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/queries/getFromAST.d.ts:6:64: Cannot find name 'FragmentDefinition'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/queries/getFromAST.d.ts:7:60: Cannot find name 'OperationDefinition'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/queries/getFromAST.d.ts:8:63: Cannot find name 'FragmentDefinition'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/queries/getFromAST.d.ts:10:29: Cannot find name 'FragmentDefinition'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/queries/getFromAST.d.ts:12:55: Cannot find name 'FragmentDefinition'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/queries/getFromAST.d.ts:13:79: Cannot find name 'FragmentDefinition'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/queries/store.d.ts:1:1: Cannot find type definition file for 'chai'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/queries/store.d.ts:3:1: Cannot find type definition file for 'typed-graphql'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/queries/store.d.ts:20:20: Cannot find name 'GraphQLError'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/queries/store.d.ts:29:19: Cannot find name 'SelectionSet'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/data/scopeQuery.d.ts:1:1: Cannot find type definition file for 'typed-graphql'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/data/scopeQuery.d.ts:10:19: Cannot find name 'SelectionSet'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/data/scopeQuery.d.ts:13:5: Cannot find name 'SelectionSet'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/data/mutationResults.d.ts:1:1: Cannot find type definition file for 'typed-graphql'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/data/mutationResults.d.ts:2:1: Cannot find type definition file for 'chai'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/data/mutationResults.d.ts:27:24: Cannot find name 'SelectionSet'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/data/mutationResults.d.ts:28:21: Cannot find name 'FragmentDefinition'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/data/mutationResults.d.ts:34:13: Cannot find name 'GraphQLResult'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/data/mutationResults.d.ts:37:19: Cannot find name 'SelectionSet'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/actions.d.ts:1:1: Cannot find type definition file for 'typed-graphql'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/actions.d.ts:3:1: Cannot find type definition file for 'chai'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/actions.d.ts:10:13: Cannot find name 'GraphQLResult'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/actions.d.ts:39:13: Cannot find name 'GraphQLResult'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/actions.d.ts:62:13: Cannot find name 'GraphQLResult'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/actions.d.ts:76:24: Cannot find name 'SelectionSet'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/actions.d.ts:77:21: Cannot find name 'FragmentDefinition'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/mutations/store.d.ts:1:1: Cannot find type definition file for 'chai'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/mutations/store.d.ts:3:1: Cannot find type definition file for 'typed-graphql'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/mutations/store.d.ts:21:19: Cannot find name 'SelectionSet'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/data/extensions.d.ts:1:1: Cannot find type definition file for 'chai'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/queries/queryTransform.d.ts:1:1: Cannot find type definition file for 'typed-graphql'.
Error at /Users/dan/Dev/rollup-lib-issues/mega-lib-trail/node_modules/apollo-client/queries/queryTransform.d.ts:3:55: Cannot find name 'SelectionSet'.

This issue is submitted on behalf of @metzc and his issue using this library with Ionic.
ionic-team/ionic-app-scripts#67 (comment)

Thanks,
Dan

@stubailo
Copy link
Contributor

I think this is a duplicate of #713 but I think there are some issues with that approach as well.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants