admin管理员组文章数量:1023221
How can I fix this issue?
After piling this error shows:
Module not found: Can't resolve 'react-bootstrap/Panel' in 'F:\CFC\aaa\src\ponents\Login'
How can I fix this issue?
After piling this error shows:
Share Improve this question edited Mar 7, 2019 at 11:35 Marcel Burkhard 3,5232 gold badges31 silver badges35 bronze badges asked Mar 7, 2019 at 10:55 Taimoor HassanTaimoor Hassan 211 silver badge2 bronze badges 5Module not found: Can't resolve 'react-bootstrap/Panel' in 'F:\CFC\aaa\src\ponents\Login'
-
did you do
npm install react-bootstrap --save
? – Avanthika Commented Mar 7, 2019 at 10:56 -
Make sure this module is installed linked correctly.
npm link [module-name]
– node_modules Commented Mar 7, 2019 at 10:56 - npm install react-bootstrap --save yes i did this but not working – Taimoor Hassan Commented Mar 7, 2019 at 11:07
- can you elaborate – Taimoor Hassan Commented Mar 7, 2019 at 11:09
- Where is the error ing from? TypeScript? Webpack? Please provide more info ! – Amit Commented Mar 7, 2019 at 11:59
3 Answers
Reset to default 3npm install --save bootstrap react-bootstrap
It works for me.
According to the react-bootstrap documentation when migrating to Bootstrap 4, Panel was replaced by Card.
For me, the Accordion ponent from Bootstrap 5. was more suited to what I wanted to do.
I would like also to guess your issue.
react-bootstrap package has a Panel ponent only until v0.33.1 version - later versions does not have such ponent. So make sure you installed correct version like npm i -S [email protected]
Also another problem could be also the reason in later versions Instead of importing default like
import Button from 'react-bootstrap/Button';
I would suggest you try
import { Button } from 'react-bootstrap';
How can I fix this issue?
After piling this error shows:
Module not found: Can't resolve 'react-bootstrap/Panel' in 'F:\CFC\aaa\src\ponents\Login'
How can I fix this issue?
After piling this error shows:
Share Improve this question edited Mar 7, 2019 at 11:35 Marcel Burkhard 3,5232 gold badges31 silver badges35 bronze badges asked Mar 7, 2019 at 10:55 Taimoor HassanTaimoor Hassan 211 silver badge2 bronze badges 5Module not found: Can't resolve 'react-bootstrap/Panel' in 'F:\CFC\aaa\src\ponents\Login'
-
did you do
npm install react-bootstrap --save
? – Avanthika Commented Mar 7, 2019 at 10:56 -
Make sure this module is installed linked correctly.
npm link [module-name]
– node_modules Commented Mar 7, 2019 at 10:56 - npm install react-bootstrap --save yes i did this but not working – Taimoor Hassan Commented Mar 7, 2019 at 11:07
- can you elaborate – Taimoor Hassan Commented Mar 7, 2019 at 11:09
- Where is the error ing from? TypeScript? Webpack? Please provide more info ! – Amit Commented Mar 7, 2019 at 11:59
3 Answers
Reset to default 3npm install --save bootstrap react-bootstrap
It works for me.
According to the react-bootstrap documentation when migrating to Bootstrap 4, Panel was replaced by Card.
For me, the Accordion ponent from Bootstrap 5. was more suited to what I wanted to do.
I would like also to guess your issue.
react-bootstrap package has a Panel ponent only until v0.33.1 version - later versions does not have such ponent. So make sure you installed correct version like npm i -S [email protected]
Also another problem could be also the reason in later versions Instead of importing default like
import Button from 'react-bootstrap/Button';
I would suggest you try
import { Button } from 'react-bootstrap';
本文标签:
版权声明:本文标题:javascript - Module not found: Can't resolve 'react-bootstrapPanel' in 'F:CFCaaasrccomponentsLog 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745585630a2157576.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论