Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This dependency was not found: components/button #15

Open
DanielBorgesOliveira opened this issue Mar 22, 2020 · 2 comments
Open

This dependency was not found: components/button #15

DanielBorgesOliveira opened this issue Mar 22, 2020 · 2 comments

Comments

@DanielBorgesOliveira
Copy link

Hello my friend,

I tried to run your code but I had no luck.

I run the commands bellow:

git clone https://github.com/themexpert/react-filemanager.git
cd react-filemanager/
npm init
npm install
npm run prod

But the app stops before the command 'npm run prod' finishes.

This is the output of the command:

@themexpert/react-filemanager@1.0.0 prod /home/daniel/my-app/react-filemanager
npm run production

@themexpert/react-filemanager@1.0.0 production /home/daniel/my-app/react-filemanager
cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

21% building modules 94/104 modules 10 active ...dules/antd/lib/button/button-group.js[BABEL] Note: The code generator has deoptimised the styling of "/home/daniel/my-app/react-filemanager/node_modules/@ant-design/icons/lib/dist.js" as it exceeds the max of "500KB".
95% emitting

ERROR Failed to compile with 2 errors 22:47:10

This dependency was not found:

  • components/button in ./src/core/fm/action/index.jsx, ./src/core/fm/content/index.jsx

To install it, you can run: npm install --save components/button
Asset Size Chunks Chunk Names
/dist/build.js 1.66 MB 0 [emitted] [big] /dist/build
dist/style.css 136 kB 0 [emitted] /dist/build
/dist/build.js.map 1.7 MB 0 [emitted] /dist/build
dist/style.css.map 80 bytes 0 [emitted] /dist/build

ERROR in ./src/core/fm/action/index.jsx
Module not found: Error: Can't resolve 'components/button' in '/home/daniel/my-app/react-filemanager/src/core/fm/action'
@ ./src/core/fm/action/index.jsx 23:14-42
@ ./src/core/fm/index.jsx
@ ./src/core/store.js
@ ./src/core/file-manager.jsx
@ ./src/index.js
@ ./build.js
@ multi ./build.js ./src/style.less

ERROR in ./src/core/fm/content/index.jsx
Module not found: Error: Can't resolve 'components/button' in '/home/daniel/my-app/react-filemanager/src/core/fm/content'
@ ./src/core/fm/content/index.jsx 23:14-42
@ ./src/core/fm/index.jsx
@ ./src/core/store.js
@ ./src/core/file-manager.jsx
@ ./src/index.js
@ ./build.js
@ multi ./build.js ./src/style.less
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @themexpert/react-filemanager@1.0.0 production: cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @themexpert/react-filemanager@1.0.0 production script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/daniel/.npm/_logs/2020-03-22T01_47_10_417Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @themexpert/react-filemanager@1.0.0 prod: npm run production
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @themexpert/react-filemanager@1.0.0 prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!

/home/daniel/.npm/_logs/2020-03-22T01_47_10_436Z-debug.log

Looks like there is a problem with "components/button", but I do not know what is the problem.
Am I doing something wrong?

Thank you.

@i-rocky
Copy link
Contributor

i-rocky commented Mar 26, 2020

Hi, sorry about the inconvenience. You didn't do anything wrong. We have abandoned this repository for quite a while and also didn't think anyone was using it directly so didn't update the README.md file. The missing dependency is from one of our products.
If you want to use it, you can fork it and workout the dependency issues or you can checkout the new repository here: https://github.com/reactfilemanager that we're currently working on. Thank you for bringing this up. We'll update the README.md file with instructions ASAP.

@DanielBorgesOliveira
Copy link
Author

Thank you reply @i-rocky. I will try your new code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants