In production 'setReferenceNode' (react-popper) o


Topic: In production 'setReferenceNode' (react-popper) of undefined

shipcake asked 5 years ago

enter image description here

I build Next.js in production throw error when use toggle menu same example. but I try to not use mdbreact Everything is fine

<MDBNavbar color="indigo" dark expand="md">
            <MDBNavbarBrand>
                <strong className="white-text">ADMIN</strong>
            </MDBNavbarBrand>
            <MDBNavbarToggler onClick={this.toggleCollapse} />
            <MDBCollapse id="navbarCollapse3" isOpen={this.state.isOpen} navbar>
                <MDBNavbarNav left>

                    <MDBNavItem>
                        <MDBDropdown>
                            <MDBDropdownToggle nav caret>
                                <span className="mr-2">ข้อมูลสินค้า</span>
                            </MDBDropdownToggle>
                            <MDBDropdownMenu>
                                <Link href="/addproduct"><MDBDropdownItem>เพิ่มข้อมูลสินค้า</MDBDropdownItem></Link>
                                <Link prefetch href="/showproducts"><MDBDropdownItem>ดูข้อมูลสินค้า</MDBDropdownItem></Link>
                            </MDBDropdownMenu>
                        </MDBDropdown>
                    </MDBNavItem>


                </MDBNavbarNav>
            </MDBCollapse>
        </MDBNavbar>

Konrad Stępień staff answered 5 years ago

Hi @shipcake,

I encourage you to read this article if you have not seen it yet: Materialize your Next.js project with MDBootstrap for React

Can you also delete node_modules folder and use npm i command in your console?

If that does not help, I'm waiting for further answers.

Best, Konrad.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.17.0
  • Device: computer
  • Browser: chrome
  • OS: windows 10 64bit
  • Provided sample code: No
  • Provided link: No