gpt4 book ai didi

reactjs - 找不到模块 : Can't resolve 'http2' when importing firebase-admin

转载 作者:行者123 更新时间:2023-12-03 13:43:48 24 4
gpt4 key购买 nike

        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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com