如何修复此错误,下一个js + firebase + Zeit

时间:2019-07-11 18:37:52

标签: reactjs next.js

我正在Nextjs应用程序中使用firebase,它在生产中工作得很好,但是 部署到Zeit时出现此错误!

 ./node_modules/@firebase/database/dist/index.node.cjs.js
                          Module not found: Can't resolve 'request' in '/tmp/6d82ffed/node_modules/@firebase/database/dist'
2019-07-08T17:56:01.203Z  > Build error occurred
2019-07-08T17:56:01.203Z  Error: > Build failed because of webpack errors
                              at Object.build [as default] (/tmp/6d82ffed/node_modules/next/dist/build/index.js:192:15)
                              at <anonymous>
                              at process._tickCallback (internal/process/next_tick.js:188:7)

我该如何解决。

我检查了github问题,发现它是一个未解决的公开问题

https://github.com/zeit/now-cli/issues/1830

是问题链接!

0 个答案:

没有答案