react-mt-svg-lines icon indicating copy to clipboard operation
react-mt-svg-lines copied to clipboard

Can't resolve 'react-mt-svg-lines' in '/opt/build/repo/src/components'

Open jT2a opened this issue 3 years ago • 3 comments

Hi, I am trying to deploy to netlify & vercel but building creates this error.

I have tried to build in gatsby locally and it works fine. Just when push to deploy doesn't compile.

Thanks for the great package.

jT2a avatar Feb 04 '22 07:02 jT2a

hi @desmondshowell, thanks for using the lib. i haven't updated it in some time. do you mind posting the error you are getting?

moarwick avatar Feb 07 '22 18:02 moarwick

Hi @moarwick,

"Can't resolve 'react-mt-svg-lines' in '/opt/build/repo/src/components'" This is the error that comes from the Netlify console. It only happens when I build on the production server.

I am using GatsbyJS and it compiles fine locally.

jT2a avatar Feb 08 '22 03:02 jT2a

strange, i think something related to Gatsby/Netlify. it appears to be a pretty common issue with other packages, if you search about. maybe try adding the "@tweenjs/tween.js": "16.7.0" dependency to your package.json manually?

moarwick avatar Feb 09 '22 15:02 moarwick