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

Getting TypeScript error in node_modules/graphql-tag/lib/index.d.ts(1,13): '=' expected. TS1005 #345

Closed
ErnestoBorio opened this issue Feb 10, 2021 · 2 comments · Fixed by #352
Assignees

Comments

@ErnestoBorio
Copy link

I'm getting TypeScript error in /app/node_modules/graphql-tag/lib/index.d.ts(1,13): '=' expected. TS1005 when building my app, which depends on graphql-tag@^2.11.0 via @apollo/client@^3.3.2.

TypeScript error in /app/node_modules/graphql-tag/lib/index.d.ts(1,13):
'=' expected.  TS1005

  > 1 | import type { DocumentNode } from 'graphql/language/ast';
      |             ^
@krishnabhargav
Copy link

Getting the same issue. Seems like the 2.11 version was replaced by accident? Anyway, we resolved out issue by upping the typescript version to be 3.8+.

@benjamn benjamn self-assigned this Feb 12, 2021
benjamn added a commit that referenced this issue Feb 12, 2021
Should fix #345. Tested by installing [email protected] and verifying that
the package compiles and passes tests.
benjamn added a commit that referenced this issue Feb 12, 2021
@benjamn
Copy link
Member

benjamn commented Feb 12, 2021

@ErnestoBorio @krishnabhargav Sorry about this problem, but thank you for reporting it! It was introduced by apollographql/apollo-client#7651 (in @apollo/[email protected]), which I considered reverting, but I believe PR #352 solves the problem without rolling anything back. Those changes are available now in [email protected].

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

Successfully merging a pull request may close this issue.

3 participants