react-copy-to-clipboard
react-copy-to-clipboard copied to clipboard
Module not found: Error: Can't resolve 'react-copy-to-clipboard' in '/opt/build/repo/src'
I implemented a copy button using react-copy-to-clipboard package, it works fine locally but on deploy to netlify, I'm getting this error. Can someone help pls.
Not added to the package.json
I have a similar problem, when I do build I get a message:
Could not find a declaration file for module 'react-copy-to-clipboard'.
And if I have it in my package.json.
"Declaration file" might be referring to typescript declarations? This is not a typescript package, it does not have type declarations. I haven't worked with Netlify so cannot help better