Reactjs 获取错误:找不到模块';的声明文件;反应引导模式';。在react js中
我是reactjs的新手,我已经安装了Reactjs 获取错误:找不到模块';的声明文件;反应引导模式';。在react js中,reactjs,Reactjs,我是reactjs的新手,我已经安装了npm安装react引导模式 当我将它与var Modal=require('react-bootstrap-Modal')一起使用时,它给出了下面的错误,有人能帮我在这方面需要做什么吗 Could not find a declaration file for module 'react-bootstrap-modal'. 'd:/wamp64/www/my-app/node_modules/react-bootstrap-modal/lib/Modal.
npm安装react引导模式
当我将它与var Modal=require('react-bootstrap-Modal')
一起使用时,它给出了下面的错误,有人能帮我在这方面需要做什么吗
Could not find a declaration file for module 'react-bootstrap-modal'. 'd:/wamp64/www/my-app/node_modules/react-bootstrap-modal/lib/Modal.js' implicitly has an 'any' type.Try `npm install @types/react-bootstrap-modal` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-bootstrap-modal';` [7016]
Try `npm install @types/react-bootstrap-modal` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-bootstrap-modal';` [7016]
未为react引导模式安装作用域类型定义 尝试安装它们:
npm install --save-dev @types/node
npm install --save @types/react-bootstrap
包的类型化版本由DefinitelyTyped
开源社区。(适用于Typescript 2.0+)