Skip to content

Element ref was specified as a string (inner) but no owner was set. This could happen for one of the following reasons: #968

Description

@worapolburaphan

!!! Important info
I using Next.js 6 (React SSR Library)
Node.js version 10.x.x

Do you want to request a feature or report a bug?

I'm report a bug

What's the current behavior?

When I write Calendar Component in to render method and save it, On the browser give me error below.

Invariant Violation: Element ref was specified as a string (inner) but no owner was set. This could happen for one of the following reasons:
1. You may be adding a ref to a functional component
2. You may be adding a ref to a component that was not created inside a component's render method
3. You have multiple copies of React loaded
See https://fb.me/react-refs-must-have-owner for more information.

react error ref

What's the expected behavior?

I want it work on next.js

Solution that i tried already

  1. npm ls react && yarn list react and it show only one react version
  2. remove node_module folder and reinstall every module by npm install

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions