#When i import the module in IPFS cluster using nest js like (import cluster from 'ipfs-cluster-api';

2 messages · Page 1 of 1 (latest)

neat rapids
#

Could not find a declaration file for module 'ipfs-cluster-api'. '/home/user/Documents/nest-code/node_modules/ipfs-cluster-api/src/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/ipfs-cluster-api if it exists or add a new declaration (.d.ts) file containing `declare module 'ipfs-cluster-api';

if I follow to install npm then also I see these error below:

npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2Fipfs-cluster-api - Not found npm ERR! 404 npm ERR! 404 '@types/ipfs-cluster-api@*' is not in this registry. 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/user/.npm/_logs/2022-10-17T05_18_23_277Z-debug-0.log

velvet maple
#

That means the @types/ipfs-cluster-api package doesn’t exist, so you continue with the or add a new declaration (.d.ts) file containing declare module 'ipfs-cluster-api';
part of the first message.