question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module not found: Error: Can't resolve 'theme' in '/home/ubuntu/workspace/cezerin'

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:24 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dqkhang96commented, Aug 19, 2019

my solution: Run npm i --save ./theme -> npm run build

1reaction
dewellopercommented, Sep 13, 2018

npm i --f

Read more comments on GitHub >

github_iconTop Results From Across the Web

12 - Stack Overflow
When I convert a React App to ES6, I got Module Not found error, how can I fix it? Related. 411 · What...
Read more >
How to fix 'Module not found: Can't resolve 'http' in ... - YouTube
Basically, just change 'react-scripts' to 4.0.2 in your package.json and run `npm install` again :D Follow me on Twitter: ...
Read more >
sage - Roots Discourse
Upgrade Bud from 5.8.7 to 6.2.0 show error "ModuleNotFoundError: Module not found: Error: Can't resolve '../node_modules/babel-loader/lib/index.
Read more >
Can't resolve 'SimpleBar' Error while stencil start
I'm using Covent+Garden-2.3.1 theme, so i download theme from store and try to do stencil start i get below error. Module not found:...
Read more >
Module not found: Can't resolve 'react/jsx-runtime' | bobbyhadz
To solve the error Module not found: Error: Can't resolve 'react/jsx-runtime', make sure to update the `react` package by opening your terminal in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found