negomi / react-burger-menu

:hamburger: An off-canvas sidebar component with a collection of effects and styles using CSS transitions and SVG path animations
http://negomi.github.io/react-burger-menu/
MIT License
5.05k stars 586 forks source link

No matter what type of children i list i get this err: "TypeError: Cannot read properties of undefined" #463

Closed kirill-develops closed 2 years ago

kirill-develops commented 2 years ago

Hey mate,

I'm a fairly new developer and haven't explored hooks yet so that maybe an issue, however i'm using "react-burger-menu": "^2.9.2", and my code is as follow

            <Menu
              outerContainerId='menu-outer'
              pageWrapId='menu-wrapper'
              className='menu'
              width={'320px'}
              right >
              <Link to='/' id='home' className='menu-item'>Home</Link>
              <Link to='/dashboard' id='dashboard' className='menu-item'>Dashboard</Link>;
              <Link to='/profile' id='profile' className='menu-item'>Profile</Link>;
            </Menu >

i keep receiving the error in the screen shot below

image

jungcome7 commented 1 week ago

how did you fix it?