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

Could not find a declarative file for module "newsapi" #43

Open
GodsonAddy opened this issue Sep 21, 2022 · 3 comments
Open

Could not find a declarative file for module "newsapi" #43

GodsonAddy opened this issue Sep 21, 2022 · 3 comments

Comments

@GodsonAddy
Copy link

I installed the newsapi npm package to us in my node. It works perfectly in my localhost but when I hover on the
const newsAPI = require("newsapi ,
it says :
module "c:/Users/Godson/OneDrive/Documents/GitHub/blog/node_modules/newsapi/dist/index" Could not find a declaration file for module 'newsapi'. 'c:/Users/Godson/OneDrive/Documents/GitHub/blog/node_modules/newsapi/dist/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/newsapi if it exists or add a new declaration (.d.ts) file containing declare module 'newsapi';
and this affects my repo when I deploy to render, it also says
Error: Cannot find module "newsapi.

My node version is v16.15.1

@ErencanPelin
Copy link

facing the same error now, i know its been ages but did you ever find a fix? 🤔

@GodsonAddy
Copy link
Author

facing the same error now, i know its been ages but did you ever find a fix? 🤔

No please

@corwinstephen
Copy link

It's just this #21

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