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

Import Error #287

Open
mjamshadm opened this issue Jul 8, 2021 · 2 comments
Open

Import Error #287

mjamshadm opened this issue Jul 8, 2021 · 2 comments

Comments

@mjamshadm
Copy link

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 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.

@kuskoman
Copy link

kuskoman commented Jul 19, 2021

The project seems to contain all required declarations, however there were no release with valid config

@krunalg
Copy link

krunalg commented Aug 5, 2022

The project seems to contain all required declarations, however there were no release with valid config

Duplicate #263

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

3 participants