-
Notifications
You must be signed in to change notification settings - Fork 4
Description
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.js21% 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% emittingERROR 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/buildERROR 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.lessERROR 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.