You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot find config file after upgrading from 1.7.x to 1.8.x #964
$ webpack --config webpack.test.js
module.js:324
throw err;
^
Error: Cannot find module 'webpack.test.js'
at Function.Module._resolveFilename (module.js:322:15)
at Function.Module._load (module.js:264:25)
at Module.require (module.js:351:17)
at require (module.js:370:17)
at module.exports (/Users/mitmaro/Code/ComboKeysContext/node_modules/webpack/bin/convert-argv.js:56:12)
at Object.<anonymous> (/Users/mitmaro/Code/ComboKeysContext/node_modules/webpack/bin/webpack.js:56:40)
at Module._compile (module.js:446:26)
at Object.Module._extensions..js (module.js:464:10)
at Module.load (module.js:341:32)
at Function.Module._load (module.js:296:12)
For me, if my file is named webpack.config.js it works. If I try passing it in such as webpack --config webpack.development.js it throws the Cannot find module error.
Activity
MitMaro commentedon Apr 10, 2015
Some additional information:
Edit: Pasted the wrong stack trace
MitMaro commentedon Apr 10, 2015
Rolling back to version 1.8.2 from 1.8.3 fixes the problem for me.
alanrsoares commentedon Apr 10, 2015
I'm gonna stick with 1.7.x till there's a patch for this issue.
claydiffrient commentedon Apr 10, 2015
For me, if my file is named
webpack.config.jsit works. If I try passing it in such aswebpack --config webpack.development.jsit throws theCannot find moduleerror.