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

TypeError: Cannot read properties of null (reading 'useState') #482

Closed PreciousNiphemi closed 1 year ago

PreciousNiphemi commented 1 year ago

I installed react burger menu using pnpm in a typescript mono repo project. i keep getting a "TypeError: Cannot read properties of null (reading 'useState')"

This is a sample of the code

import React from "react"
import { stack as HamBurgerMenu } from "react-burger-menu"

const SideMenu = ()=>{
return (
       <div>
    <HamBurgerMenu right >
                <SideBar />
     </HamBurgerMenu>
      </div>
)
} 
Screenshot 2023-01-19 at 00 46 19
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.