negomi/react-burger-menu

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

Closed this issue · 1 comments

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 commented

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.