'react-bootstrap' does not contain an export named 'MenuItem

文章推薦指數: 80 %
投票人數:10人

I tried doing npm start, and receiving the following error. ./src/app.js 104:16-24 'react-bootstrap' does not contain an export ... 'react-bootstrap'doesnotcontainanexportnamed'MenuItemreactjs05January2022-1answerAdItrieddoingnpmstart,andreceivingthefollowingerror../src/App.js 104:16-24'react-bootstrap'doesnotcontainanexportnamed'MenuItem HowcanIfixthis?ItrieddoingnpminstallReferenceCode:import{Nav,Navbar,NavDropdown,NavItem,MenuItem}from'react-bootstrap'; AdAnswerInnewversionsofbootstrapitisDropdown.ItemnotMenuItem.CheckhereAdsource:stackoverflow.com←PreviousPostNextPost→RelatedQuestions→ImportstatementandBabel→shouldIchoosereactjs+f7orf7+vue.js?→UncaughtTypeError:Cannotreadproperty'__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED'ofundefined→.tsxwebpackcompilefails:Unexpectedtoken



請為這篇文章評分?