Failed to compile
./node_modules/@grpc/grpc-js/build/src/channel.js
Module not found: Can't resolve 'http2' in '/Users/Michael/Development/Projects/mpsa-ntcs/node_modules/@grpc/grpc-js/build/src'
This error occurred during the build time and cannot be dismissed.
将 firebase-admin 导入我的应用程序时,我不断收到此错误。我尝试更新 GRPC,尝试降级/升级节点,重新安装节点 + npm...一切!!
有人知道这个问题的解决方法吗?
谢谢!
最佳答案
我相信您需要安装已弃用的“http2”软件包。尝试运行:
npm install http2
关于reactjs - 找不到模块 : Can't resolve 'http2' when importing firebase-admin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53660874/