Skip to content

Instantly share code, notes, and snippets.

@davidascher
Created April 29, 2017 22:09
Show Gist options
  • Save davidascher/21d3a36dd3570abcffaa0544658a398f to your computer and use it in GitHub Desktop.
Save davidascher/21d3a36dd3570abcffaa0544658a398f to your computer and use it in GitHub Desktop.
> next build
04/29 03:06 PM (2m)
> Using "webpack" config function defined in next.config.js.
04/29 03:07 PM (1m)
> Failed to build on /tmp/2b676449-6d73-4658-85a8-02154dcc3f63
04/29 03:07 PM (1m)
{ Error: ./pages/login.js?entry
Module not found: Error: Can't resolve 'firebase' in '/home/nowuser/src/pages'
resolve 'firebase' in '/home/nowuser/src/pages'
Parsed request is a module
using description file: /home/nowuser/src/package.json (relative path: ./pages)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /home/nowuser/src/package.json (relative path: ./pages)
resolve as module
/home/nowuser/src/pages/node_modules doesn't exist or is not a directory
/home/nowuser/node_modules doesn't exist or is not a directory
/home/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
looking for modules in /home/nowuser/src/node_modules/next/node_modules
using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules)
using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules/firebase)
as directory
/home/nowuser/src/node_modules/next/node_modules/firebase doesn't exist
no extension
Field 'browser' doesn't contain a valid alias configuration
/home/nowuser/src/node_modules/next/node_modules/firebase doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/home/nowuser/src/node_modules/next/node_modules/firebase.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/home/nowuser/src/node_modules/next/node_modules/firebase.json doesn't exist
looking for modules in /home/nowuser/src/node_modules
using description file: /home/nowuser/src/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /home/nowuser/src/package.json (relative path: ./node_modules)
using description file: /home/nowuser/src/package.json (relative path: ./node_modules/firebase)
as directory
/home/nowuser/src/node_modules/firebase doesn't exist
no extension
Field 'browser' doesn't contain a valid alias configuration
/home/nowuser/src/node_modules/firebase doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/home/nowuser/src/node_modules/firebase.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/home/nowuser/src/node_modules/firebase.json doesn't exist
[/home/nowuser/src/pages/node_modules]
[/home/nowuser/node_modules]
[/home/node_modules]
[/node_modules]
[/home/nowuser/src/node_modules/next/node_modules/firebase]
[/home/nowuser/src/node_modules/next/node_modules/firebase]
[/home/nowuser/src/node_modules/next/node_modules/firebase.js]
[/home/nowuser/src/node_modules/next/node_modules/firebase.json]
[/home/nowuser/src/node_modules/firebase]
[/home/nowuser/src/node_modules/firebase]
[/home/nowuser/src/node_modules/firebase.js]
[/home/nowuser/src/node_modules/firebase.json]
@ ./pages/login.js?entry 59:16-35
@ multi ./pages/login.js?entry
at /home/nowuser/src/node_modules/next/dist/server/build/index.js:133:21
at /home/nowuser/src/node_modules/webpack/lib/Compiler.js:256:15
at Compiler.emitRecords (/home/nowuser/src/node_modules/webpack/lib/Compiler.js:351:37)
at /home/nowuser/src/node_modules/webpack/lib/Compiler.js:249:12
at /home/nowuser/src/node_modules/webpack/lib/Compiler.js:344:11
at next (/home/nowuser/src/node_modules/tapable/lib/Tapable.js:154:11)
at Compiler.compiler.plugin (/home/nowuser/src/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
at Compiler.applyPluginsAsyncSeries1 (/home/nowuser/src/node_modules/tapable/lib/Tapable.js:158:13)
at Compiler.afterEmit (/home/nowuser/src/node_modules/webpack/lib/Compiler.js:341:8)
at Compiler.<anonymous> (/home/nowuser/src/node_modules/webpack/lib/Compiler.js:336:14)
errors:
[ './pages/login.js?entry\nModule not found: Error: Can\'t resolve \'firebase\' in \'/home/nowuser/src/pages\'\nresolve \'firebase\' in \'/home/nowuser/src/pages\'\n Parsed request is a module\n using description file: /home/nowuser/src/package.json (relative path: ./pages)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/nowuser/src/package.json (relative path: ./pages)\n resolve as module\n /home/nowuser/src/pages/node_modules doesn\'t exist or is not a directory\n /home/nowuser/node_modules doesn\'t exist or is not a directory\n /home/node_modules doesn\'t exist or is not a directory\n /node_modules doesn\'t exist or is not a directory\n looking for modules in /home/nowuser/src/node_modules/next/node_modules\n using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules)\n using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules/firebase)\n as directory\n /home/nowuser/src/node_modules/next/node_modules/firebase doesn\'t exist\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/nowuser/src/node_modules/next/node_modules/firebase doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/nowuser/src/node_modules/next/node_modules/firebase.js doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/nowuser/src/node_modules/next/node_modules/firebase.json doesn\'t exist\n looking for modules in /home/nowuser/src/node_modules\n using description file: /home/nowuser/src/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/nowuser/src/package.json (relative path: ./node_modules)\n using description file: /home/nowuser/src/package.json (relative path: ./node_modules/firebase)\n as directory\n /home/nowuser/src/node_modules/firebase doesn\'t exist\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/nowuser/src/node_modules/firebase doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/nowuser/src/node_modules/firebase.js doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/nowuser/src/node_modules/firebase.json doesn\'t exist\n[/home/nowuser/src/pages/node_modules]\n[/home/nowuser/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/nowuser/src/node_modules/next/node_modules/firebase]\n[/home/nowuser/src/node_modules/next/node_modules/firebase]\n[/home/nowuser/src/node_modules/next/node_modules/firebase.js]\n[/home/nowuser/src/node_modules/next/node_modules/firebase.json]\n[/home/nowuser/src/node_modules/firebase]\n[/home/nowuser/src/node_modules/firebase]\n[/home/nowuser/src/node_modules/firebase.js]\n[/home/nowuser/src/node_modules/firebase.json]\n @ ./pages/login.js?entry 59:16-35\n @ multi ./pages/login.js?entry',
'./pages/signup.js?entry\nModule not found: Error: Can\'t resolve \'firebase\' in \'/home/nowuser/src/pages\'\nresolve \'firebase\' in \'/home/nowuser/src/pages\'\n Parsed request is a module\n using description file: /home/nowuser/src/package.json (relative path: ./pages)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/nowuser/src/package.json (relative path: ./pages)\n resolve as module\n /home/nowuser/src/pages/node_modules doesn\'t exist or is not a directory\n /home/nowuser/node_modules doesn\'t exist or is not a directory\n /home/node_modules doesn\'t exist or is not a directory\n /node_modules doesn\'t exist or is not a directory\n looking for modules in /home/nowuser/src/node_modules/next/node_modules\n using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules)\n using description file: /home/nowuser/src/node_modules/next/package.json (relative path: ./node_modules/firebase)\n as directory\n /home/nowuser/src/node_modules/next/node_modules/firebase doesn\'t exist\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/nowuser/src/node_modules/next/node_modules/firebase doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/nowuser/src/node_modules/next/node_modules/firebase.js doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/nowuser/src/node_modules/next/node_modules/firebase.json doesn\'t exist\n looking for modules in /home/nowuser/src/node_modules\n using description file: /home/nowuser/src/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/nowuser/src/package.json (relative path: ./node_modules)\n using description file: /home/nowuser/src/package.json (relative path: ./node_modules/firebase)\n as directory\n /home/nowuser/src/node_modules/firebase doesn\'t exist\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/nowuser/src/node_modules/firebase doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/nowuser/src/node_modules/firebase.js doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/nowuser/src/node_modules/firebase.json doesn\'t exist\n[/home/nowuser/src/pages/node_modules]\n[/home/nowuser/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/nowuser/src/node_modules/next/node_modules/firebase]\n[/home/nowuser/src/node_modules/next/node_modules/firebase]\n[/home/nowuser/src/node_modules/next/node_modules/firebase.js]\n[/home/nowuser/src/node_modules/next/node_modules/firebase.json]\n[/home/nowuser/src/node_modules/firebase]\n[/home/nowuser/src/node_modules/firebase]\n[/home/nowuser/src/node_modules/firebase.js]\n[/home/nowuser/src/node_modules/firebase.json]\n @ ./pages/signup.js?entry 47:16-35\n @ multi ./pages/signup.js?entry' ],
warnings: [] }
04/29 03:07 PM (1m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment