Skip to content

Instantly share code, notes, and snippets.

@MrRoyce
Created September 26, 2016 21:21
Show Gist options
  • Save MrRoyce/a834a0da679c9073b0d6a84cb468c566 to your computer and use it in GitHub Desktop.
Save MrRoyce/a834a0da679c9073b0d6a84cb468c566 to your computer and use it in GitHub Desktop.
WebPack error listing to debug Module not found: Error: Cannot resolve module 'babel-runtime'
> webpack --display-error-details
clean-webpack-plugin: /Applications/MAMP/htdocs/tonight/build has been removed.
ModuleNotFoundError: Module not found: Error: Cannot resolve module 'babel-runtime' in /Applications/MAMP/htdocs/tonight
at /Applications/MAMP/htdocs/tonight/node_modules/webpack/lib/Compilation.js:229:38
at onDoneResolving (/Applications/MAMP/htdocs/tonight/node_modules/webpack/lib/NormalModuleFactory.js:29:20)
at /Applications/MAMP/htdocs/tonight/node_modules/webpack/lib/NormalModuleFactory.js:85:20
at /Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:726:13
at /Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:52:16
at done (/Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:241:17)
at /Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:44:16
at /Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:723:17
at /Applications/MAMP/htdocs/tonight/node_modules/async/lib/async.js:167:37
at /Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:24:19
at onResolved (/Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/Resolver.js:38:18)
at innerCallback (/Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/Resolver.js:94:11)
at loggingCallbackWrapper (/Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/createInnerCallback.js:21:19)
at /Applications/MAMP/htdocs/tonight/node_modules/tapable/lib/Tapable.js:134:6
at /Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/ModulesInDirectoriesPlugin.js:54:23
at /Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/Resolver.js:191:15
at /Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/ModulesInDirectoriesPlugin.js:45:26
at loggingCallbackWrapper (/Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/createInnerCallback.js:21:19)
at /Applications/MAMP/htdocs/tonight/node_modules/tapable/lib/Tapable.js:134:6
at /Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/Resolver.js:122:33
at /Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/Resolver.js:191:15
at applyPluginsParallelBailResult.createInnerCallback.log (/Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/Resolver.js:110:4)
at loggingCallbackWrapper (/Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/createInnerCallback.js:21:19)
at /Applications/MAMP/htdocs/tonight/node_modules/tapable/lib/Tapable.js:134:6
at Tapable.next (/Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/DirectoryDescriptionFilePlugin.js:61:40)
at Tapable.<anonymous> (/Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/DirectoryDescriptionFilePlugin.js:71:6)
at Storage.finished (/Applications/MAMP/htdocs/tonight/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
at /Applications/MAMP/htdocs/tonight/node_modules/graceful-fs/graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:404:3)
resolve module babel-runtime in /Applications/MAMP/htdocs/tonight
looking for modules in /Applications/MAMP/htdocs/tonight
/Applications/MAMP/htdocs/tonight/babel-runtime doesn't exist (module as directory)
resolve 'file' babel-runtime in /Applications/MAMP/htdocs/tonight
resolve file
/Applications/MAMP/htdocs/tonight/babel-runtime doesn't exist
/Applications/MAMP/htdocs/tonight/babel-runtime.js doesn't exist
/Applications/MAMP/htdocs/tonight/babel-runtime.jsx doesn't exist
looking for modules in /Applications/MAMP/htdocs/tonight/node_modules
resolve 'file' babel-runtime in /Applications/MAMP/htdocs/tonight/node_modules
resolve file
/Applications/MAMP/htdocs/tonight/node_modules/babel-runtime is not a file
/Applications/MAMP/htdocs/tonight/node_modules/babel-runtime.js doesn't exist
/Applications/MAMP/htdocs/tonight/node_modules/babel-runtime.jsx doesn't exist
resolve 'file' or 'directory' /Applications/MAMP/htdocs/tonight/node_modules/babel-runtime
resolve file
/Applications/MAMP/htdocs/tonight/node_modules/babel-runtime is not a file
/Applications/MAMP/htdocs/tonight/node_modules/babel-runtime.js doesn't exist
/Applications/MAMP/htdocs/tonight/node_modules/babel-runtime.jsx doesn't exist
resolve directory
directory default file index
resolve file index in /Applications/MAMP/htdocs/tonight/node_modules/babel-runtime
/Applications/MAMP/htdocs/tonight/node_modules/babel-runtime/index doesn't exist
/Applications/MAMP/htdocs/tonight/node_modules/babel-runtime/index.js doesn't exist
/Applications/MAMP/htdocs/tonight/node_modules/babel-runtime/index.jsx doesn't exist
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/royce/.nvm/versions/node/v5.0.0/bin/node" "/Users/royce/.nvm/versions/node/v5.0.0/bin/npm" "run" "build"
npm ERR! node v5.0.0
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `webpack --display-error-details`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'webpack --display-error-details'.
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 tonight package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack --display-error-details
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs tonight
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls tonight
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Applications/MAMP/htdocs/tonight/npm-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment