next icon indicating copy to clipboard operation
next copied to clipboard

Warning: div: `ref` is not a prop. in Next 14.2.2

Open mariussunde opened this issue 1 year ago • 1 comments

Struggling here to even initialise the wrapper.

I've simply gone ahead and added the example of from the docs, and my console is logging the following error:

app-index.js:33 Warning: div: refis not a prop. Trying to access it will result inundefined being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)

I've tried downgrading the package to version 4.4.0 as per some of the other issues people have had without any luck. Any pointers on how to solve appreciated.

Edit: to be crystal clear, my component is exactly the example code and nothing else at this stage.

mariussunde avatar Jul 01 '24 12:07 mariussunde

I don't see this error 🤔... do you have a repo to share or a REPL example?

jamesrweb avatar Dec 13 '24 12:12 jamesrweb

Closing due to inactivity.

jamesrweb avatar Jul 04 '25 21:07 jamesrweb