Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack errors when using with next js #269

Open
billcastillo opened this issue Apr 30, 2019 · 1 comment
Open

Webpack errors when using with next js #269

billcastillo opened this issue Apr 30, 2019 · 1 comment

Comments

@billcastillo
Copy link

Using rebase along with nextJS gives a webpack error on build:

Failed to compile.

./node_modules/@firebase/database/dist/index.node.cjs.js
Module not found: Can't resolve 'request' in '/Users/.../node_modules/@firebase/database/dist'

> Build error occurred
Error: > Build failed because of webpack errors
    at Object.build [as default] (/Users/.../node_modules/next/dist/build/index.js:192:15)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Reproduce error:

  1. Go to (repo and clone)[https://github.com/billcastillo/next-page3]
  2. Run npm install
  3. Run npm run build or next build
  4. See error

Although it runs fine locally:

  1. Run npm run dev
  2. Go to http://localhost:3000
@colemahatmccreary
Copy link

any word on this? i'm getting the same error on a project right now, although not using firebase.

for my back end, my api routes use sql-template-strings and serverless-mysql.

everything runs fine locally and fails on build at that same '....next_tick.js/68:7'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants