Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 获取错误:找不到模块';的声明文件;反应引导模式';。在react js中_Reactjs - Fatal编程技术网

Reactjs 获取错误:找不到模块';的声明文件;反应引导模式';。在react js中

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.

我是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.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+)