Module not found: Error: Can't resolve 'theme' in '/home/ubuntu/workspace/cezerin'
See original GitHub issueI tried to run “npm run build” Then appear this error. and I have issue with npm start. "annguyen36:~/workspace/cezerin (master) $ npm run build
cezerin@0.33.0 build /home/ubuntu/workspace/cezerin NODE_ENV=production npm run compile && npm run theme:build && npm run webpack:admin
cezerin@0.33.0 compile /home/ubuntu/workspace/cezerin babel src/store -d dist/store --quiet
cezerin@0.33.0 theme:build /home/ubuntu/workspace/cezerin babel theme/src -d theme/dist --quiet && npm run webpack:store
cezerin@0.33.0 webpack:store /home/ubuntu/workspace/cezerin webpack --config webpack.config.store.js --mode production
Hash: b2af1e2f0e2ef9072973 Version: webpack 4.1.1 Time: 32163ms Built at: 3/12/2018 12:55:07 AM 2 assets Entrypoint app = assets/js/app-e441451a78a502bb9f2e.js Entrypoint theme = assets/js/theme-9eb3390c7dd2fb28e1da.js [9] ./node_modules/react-redux/es/index.js + 14 modules 37.4 KiB {1} [built] | 15 modules [14] ./node_modules/redux/es/index.js + 6 modules 20.6 KiB {1} [built] | 7 modules [66] ./node_modules/redux-form/es/index.js + 225 modules 296 KiB {1} [built] | 226 modules [67] ./src/store/shared/actions.js 19.3 KiB {1} [built] [74] (webpack)/buildin/global.js 509 bytes {1} [built] [140] ./node_modules/react-router-dom/es/index.js + 13 modules 13.4 KiB {1} [built] | 14 modules [147] ./src/store/shared/analytics/index.js 3.74 KiB {1} [built] [148] ./src/store/shared/actionTypes.js 2.76 KiB {1} [built] [194] multi theme 28 bytes {0} [built] [195] ./src/store/shared/containers/search.js 596 bytes {1} [built] [196] ./src/store/shared/containers/notfound.js 598 bytes {1} [built] [277] ./src/store/shared/app.js 5.83 KiB {1} [built] [279] ./src/store/shared/reducers.js 3.88 KiB {1} [built] [295] ./src/store/client/index.js 1.52 KiB {1} [built] [498] multi babel-polyfill ./src/store/client/index.js 40 bytes {1} [built] + 486 hidden modules
ERROR in multi theme Module not found: Error: Can’t resolve ‘theme’ in ‘/home/ubuntu/workspace/cezerin’ @ multi theme
ERROR in ./src/store/shared/containers/shared.js Module not found: Error: Can’t resolve ‘theme’ in ‘/home/ubuntu/workspace/cezerin/src/store/shared/containers’ @ ./src/store/shared/containers/shared.js 17:13-29 @ ./src/store/shared/app.js @ ./src/store/client/index.js @ multi babel-polyfill ./src/store/client/index.js
ERROR in ./src/store/shared/containers/index.js Module not found: Error: Can’t resolve ‘theme’ in ‘/home/ubuntu/workspace/cezerin/src/store/shared/containers’ @ ./src/store/shared/containers/index.js 17:13-29 @ ./src/store/shared/app.js @ ./src/store/client/index.js @ multi babel-polyfill ./src/store/client/index.js
ERROR in ./src/store/shared/containers/category.js Module not found: Error: Can’t resolve ‘theme’ in ‘/home/ubuntu/workspace/cezerin/src/store/shared/containers’ @ ./src/store/shared/containers/category.js 17:13-29 @ ./src/store/shared/app.js @ ./src/store/client/index.js @ multi babel-polyfill ./src/store/client/index.js
ERROR in ./src/store/shared/containers/product.js Module not found: Error: Can’t resolve ‘theme’ in ‘/home/ubuntu/workspace/cezerin/src/store/shared/containers’ @ ./src/store/shared/containers/product.js 17:13-29 @ ./src/store/shared/app.js @ ./src/store/client/index.js @ multi babel-polyfill ./src/store/client/index.js
ERROR in ./src/store/shared/containers/page.js Module not found: Error: Can’t resolve ‘theme’ in ‘/home/ubuntu/workspace/cezerin/src/store/shared/containers’ @ ./src/store/shared/containers/page.js 17:13-29 @ ./src/store/shared/app.js @ ./src/store/client/index.js @ multi babel-polyfill ./src/store/client/index.js
ERROR in ./src/store/shared/containers/checkoutSuccess.js Module not found: Error: Can’t resolve ‘theme’ in ‘/home/ubuntu/workspace/cezerin/src/store/shared/containers’ @ ./src/store/shared/containers/checkoutSuccess.js 17:13-29 @ ./src/store/shared/app.js @ ./src/store/client/index.js @ multi babel-polyfill ./src/store/client/index.js
ERROR in ./src/store/shared/containers/notfound.js Module not found: Error: Can’t resolve ‘theme’ in ‘/home/ubuntu/workspace/cezerin/src/store/shared/containers’ @ ./src/store/shared/containers/notfound.js 17:13-29 @ ./src/store/shared/app.js @ ./src/store/client/index.js @ multi babel-polyfill ./src/store/client/index.js
ERROR in ./src/store/shared/containers/search.js Module not found: Error: Can’t resolve ‘theme’ in ‘/home/ubuntu/workspace/cezerin/src/store/shared/containers’ @ ./src/store/shared/containers/search.js 17:13-29 @ ./src/store/shared/app.js @ ./src/store/client/index.js @ multi babel-polyfill ./src/store/client/index.js
ERROR in ./src/store/shared/containers/checkout.js Module not found: Error: Can’t resolve ‘theme’ in ‘/home/ubuntu/workspace/cezerin/src/store/shared/containers’ @ ./src/store/shared/containers/checkout.js 17:13-29 @ ./src/store/shared/app.js @ ./src/store/client/index.js @ multi babel-polyfill ./src/store/client/index.js Child html-webpack-plugin for “assets/index.html”: 1 asset Entrypoint undefined = assets/index.html [0] (webpack)/buildin/module.js 519 bytes {0} [built] [1] (webpack)/buildin/global.js 509 bytes {0} [built] [3] ./node_modules/html-webpack-plugin/lib/loader.js!./theme/index.html 2.49 KiB {0} [built] + 1 hidden module
npm ERR! Linux 4.9.80-c9
npm ERR! argv “/home/ubuntu/.nvm/versions/node/v6.11.2/bin/node” “/home/ubuntu/.nvm/versions/node/v6.11.2/bin/npm” “run” “webpack:store”
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! cezerin@0.33.0 webpack:store: webpack --config webpack.config.store.js --mode production
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the cezerin@0.33.0 webpack:store script ‘webpack --config webpack.config.store.js --mode production’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cezerin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack --config webpack.config.store.js --mode production
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs cezerin
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls cezerin
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/workspace/cezerin/npm-debug.log
npm ERR! Linux 4.9.80-c9
npm ERR! argv “/home/ubuntu/.nvm/versions/node/v6.11.2/bin/node” “/home/ubuntu/.nvm/versions/node/v6.11.2/bin/npm” “run” “theme:build”
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! cezerin@0.33.0 theme:build: babel theme/src -d theme/dist --quiet && npm run webpack:store
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cezerin@0.33.0 theme:build script ‘babel theme/src -d theme/dist --quiet && npm run webpack:store’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cezerin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! babel theme/src -d theme/dist --quiet && npm run webpack:store
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs cezerin
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls cezerin
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/workspace/cezerin/npm-debug.log
npm ERR! Linux 4.9.80-c9
npm ERR! argv “/home/ubuntu/.nvm/versions/node/v6.11.2/bin/node” “/home/ubuntu/.nvm/versions/node/v6.11.2/bin/npm” “run” “build”
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! cezerin@0.33.0 build: NODE_ENV=production npm run compile && npm run theme:build && npm run webpack:admin
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cezerin@0.33.0 build script ‘NODE_ENV=production npm run compile && npm run theme:build && npm run webpack:admin’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cezerin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! NODE_ENV=production npm run compile && npm run theme:build && npm run webpack:admin
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs cezerin
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls cezerin
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/workspace/cezerin/npm-debug.log"
Please help me. Thanks a lot.
Issue Analytics
- State:
- Created 6 years ago
- Comments:24 (5 by maintainers)
my solution: Run npm i --save ./theme -> npm run build
npm i --f