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

File declaration for module error #32

Open
emreer94 opened this issue Jan 20, 2022 · 0 comments
Open

File declaration for module error #32

emreer94 opened this issue Jan 20, 2022 · 0 comments

Comments

@emreer94
Copy link

I npm installed control-panel into my app folder. I see the module inside my node_modules folder. When I try to import, I obtain the error below:

"Could not find a declaration file for module 'control-panel'. '/home/emre/Desktop/dec31/AnayurtVCS/node_modules/control-panel/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/control-panel if it exists or add a new declaration (.d.ts) file containing declare module 'control-panel';ts(7016)"

When I use "npm i --save-dev @types/control-panel", I got the errors below:

"npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2fcontrol-panel - Not found
npm ERR! 404
npm ERR! 404 '@types/control-panel@*' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/emre/.npm/_logs/2022-01-20T13_02_35_063Z-debug-0.log"

I also manually created folder called "@types" with "alltypes.d.ts" file in it. I declared the module inside this file. It did not changed anything for me. So, I am stuck at this part.

I would be glad if anyone could help! Thanks in advance!

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

1 participant