小编Ola*_*laf的帖子

GatsbyJS with Firebase - WebpackError: ReferenceError: IDBIndex is not defined

我收到gatsby develop 的错误。它与这个非常相似:https : //github.com/firebase/firebase-js-sdk/issues/2222,但我收到了gatsby develop错误,而不是 gatsby build 错误。我做了很多研究,但找不到可行的解决方案。起初我在gatsby build 上遇到了问题,就像在这篇文章中一样:https : //github.com/firebase/firebase-js-sdk/issues/2222,但我用自定义的 onCreateWebpackConfig 解决了它(你可以在下面找到它)。

堆栈: - Gatsby - Firebase(可能是错误) - Redux

我也删除了 .cache 和 node_modules 并重新安装了所有东西,但它没有用。

错误

There was an error compiling the html.js component for the development server.

See our docs page on debugging HTML builds for help https://gatsby.dev/debug-html ReferenceError: IDBIndex is not defined
]);
  86 | 
> 87 | proxyRequestMethods(Index, '_index', IDBIndex, [
     | ^
  88 …
Run Code Online (Sandbox Code Playgroud)

firebase webpack react-redux gatsby google-cloud-firestore

2
推荐指数
1
解决办法
1986
查看次数