react-avatar-uploader
react-avatar-uploader copied to clipboard
Packages not installed
hi, packages not installed properly pls help me.
Hi @jurjees23 , Do you have any more information? Such as what kind of error message are you getting, stack traces, what you did to produce this error? This kind of information would help greatly.
Believe this is the issue
ERROR in ./node_modules/react-avatar-uploader/dist/Avatar/index.js
[1] Module not found: Error: Can't resolve 'styled-components' in '/Users/gigi/Desktop/Repo/smolcoach/node_modules/react-avatar-uploader/dist/Avatar'
[1] @ ./node_modules/react-avatar-uploader/dist/Avatar/index.js 9:24-52
[1] @ ./node_modules/react-avatar-uploader/dist/index.js
[1] @ ./src/client/pages/profile/index.js
[1] @ ./src/client/routes/index.js
[1] @ ./src/client/index.js
[1] @ multi babel-polyfill ./src/client/index.js
[1]
[1] ERROR in ./node_modules/react-avatar-uploader/dist/Avatar/ImagePreview.js
[1] Module not found: Error: Can't resolve 'styled-components' in '/Users/gigi/Desktop/Repo/smolcoach/node_modules/react-avatar-uploader/dist/Avatar'
[1] @ ./node_modules/react-avatar-uploader/dist/Avatar/ImagePreview.js 9:24-52
[1] @ ./node_modules/react-avatar-uploader/dist/Avatar/index.js
[1] @ ./node_modules/react-avatar-uploader/dist/index.js
[1] @ ./src/client/pages/profile/index.js
[1] @ ./src/client/routes/index.js
[1] @ ./src/client/index.js
[1] @ multi babel-polyfill ./src/client/index.js
[1]
[1] ERROR in ./node_modules/react-avatar-uploader/dist/Avatar/Uploader.js
[1] Module not found: Error: Can't resolve 'styled-components' in '/Users/gigi/Desktop/Repo/smolcoach/node_modules/react-avatar-uploader/dist/Avatar'
[1] @ ./node_modules/react-avatar-uploader/dist/Avatar/Uploader.js 13:24-52
[1] @ ./node_modules/react-avatar-uploader/dist/Avatar/index.js
[1] @ ./node_modules/react-avatar-uploader/dist/index.js
[1] @ ./src/client/pages/profile/index.js
[1] @ ./src/client/routes/index.js
[1] @ ./src/client/index.js
[1] @ multi babel-polyfill ./src/client/index.js
I created a PR for this issue, for now you can try to add the packages directly to your package.json file as a quick fix by running.
Yarn: yarn add styled-components prop-types axios
Npm: npm I -S styled-components prop-types axios