-
Notifications
You must be signed in to change notification settings - Fork 430
Description
For some reason when I try to import the react-bootstrap-table-next it doesnt work
import BootstrapTable from 'react-bootstrap-table-next';
module "/home/rin/sc-deal/client/node_modules/react-bootstrap-table-next/lib/index"
Could not find a declaration file for module 'react-bootstrap-table-next'. '/home/rin/sc-deal/client/node_modules/react-bootstrap-table-next/lib/index.js' implicitly has an 'any' type.
Try npm install @types/react-bootstrap-table-next
if it exists or add a new declaration (.d.ts) file containing declare module 'react-bootstrap-table-next';
ts(7016)
When I try the fix they suggested:
root@ubuntu:/home/rin/sc-deal/client# npm install @types/react-bootstrap-table-next
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2freact-bootstrap-table-next - Not found
npm ERR! 404
npm ERR! 404 '@types/react-bootstrap-table-next@latest' is not in the npm 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! /root/.npm/_logs/2019-06-24T12_58_36_545Z-debug.log