Open cafe4it opened 7 years ago
try webpack --config webpack.config.dev.js --watch
@ogavrushev Thanks.
Hash: 891865a043ec64884cdb
Version: webpack 1.13.1
Time: 696ms
[0] multi options 40 bytes {0} [built] [1 error]
[0] multi popup 40 bytes {1} [built] [1 error]
+ 16 hidden modules
ERROR in ./src/scripts/popup.js
Module build failed: Error: Cannot find module './lib/babel'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/react-hot-loader/babel.js:1:80)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at /home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:202:20
at Array.map (native)
at Function.normalisePlugins (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:20)
at OptionManager.mergeOptions (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:300:36)
at OptionManager.addConfig (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:232:10)
at OptionManager.findConfigs (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:436:16)
at OptionManager.init (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:484:12)
at File.initOptions (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/index.js:223:65)
at new File (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/index.js:140:24)
at Pipeline.transform (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-loader/index.js:14:22)
at Object.module.exports (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-loader/index.js:88:12)
@ multi popup
ERROR in ./src/scripts/options.js
Module build failed: Error: Cannot find module './lib/babel'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/react-hot-loader/babel.js:1:80)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at /home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:202:20
at Array.map (native)
at Function.normalisePlugins (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:20)
at OptionManager.mergeOptions (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:300:36)
at OptionManager.addConfig (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:232:10)
at OptionManager.findConfigs (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:436:16)
at OptionManager.init (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/options/option-manager.js:484:12)
at File.initOptions (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/index.js:223:65)
at new File (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/file/index.js:140:24)
at Pipeline.transform (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-loader/index.js:14:22)
at Object.module.exports (/home/nxcong/Projects/chrome-ext/chatchatchit/node_modules/babel-loader/index.js:88:12)
@ multi options
The same issue here.
Someone have found solution on that?
@mikeon rename the dev webpack config file to webpack.config.js or modify package.json's start script line to pass the dev config file as it is currently named by adding --config webpack.config.dev.js or add this in the array of scripts and use npm run dev instead of npm start:
"dev": "webpack --watch --config webpack.config.dev.js"
Hi, i got error : npm start