You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using garaphql apollo server and getting below error while importing graphql-validation-complexity module:- Code Snippet :- const {createComplexityLimitRule} = require("graphql-validation-complexity"); Error :- Could not find a declaration file for module 'graphql-validation-complexity'. 'c:/graphql-validation-complexity/lib/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/graphql-validation-complexity if it exists or add a new declaration (.d.ts) file containing declare module 'graphql-validation-complexity';
Able to resolve this issue by creating a 'index.d.ts' file with index.js content. It seems like this file is missing from the source code. Please resolve.
The text was updated successfully, but these errors were encountered:
Hi Team,
I am using garaphql apollo server and getting below error while importing graphql-validation-complexity module:-
Code Snippet :- const {createComplexityLimitRule} = require("graphql-validation-complexity");
Error :- Could not find a declaration file for module 'graphql-validation-complexity'. 'c:/graphql-validation-complexity/lib/index.js' implicitly has an 'any' type.
Try
npm i --save-dev @types/graphql-validation-complexity
if it exists or add a new declaration (.d.ts) file containingdeclare module 'graphql-validation-complexity';
Able to resolve this issue by creating a 'index.d.ts' file with index.js content. It seems like this file is missing from the source code. Please resolve.
The text was updated successfully, but these errors were encountered: