I've been getting the following error with [email protected].
SyntaxError: [vite] The requested module 'graphql-request' does not provide an export named 'RequestOptions'
I believe the solution is to import RequestOptions as a type, e.g.
this._additionalImports.push(
- `${typeImport} { GraphQLClient, RequestOptions } from 'graphql-request';`,
+ `${typeImport} { GraphQLClient, type RequestOptions } from 'graphql-request';`,
);
Source:
|
this._additionalImports.push( |
|
`${typeImport} { GraphQLClient, RequestOptions } from 'graphql-request';`, |
|
); |
I've been getting the following error with
[email protected].I believe the solution is to import
RequestOptionsas a type, e.g.Source:
graphql-code-generator-community/packages/plugins/typescript/graphql-request/src/visitor.ts
Lines 49 to 51 in 776569a