在尝试将我的应用程序上传到App Store Connect时,我被困在"使用App Store验证资产"中4-5个小时.我的网络很好,上游50-60,下游100多.
我正在尝试将 RecaptchaVerifier 加载到我的 React 类中,以便我可以为我的 Web 应用程序启用电话身份验证。但是,当我提交电话号码时,出现以下错误:
"signInWithPhoneNumber failed: Second argument "applicationVerifier" must be an implementation of firebase.auth.ApplicationVerifier."
此错误的整个控制台日志
我记录了 window.recaptchaVerifier,发现它默默地出错,错误代码如下:
TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function.invokeGetter (<anonymous>:2:14)
Recaptcha 甚至不渲染,并且 window.repcaptchaVerfier.render() 方法抛出另一个错误(似乎该部分在文档中是可选的,所以我将其删除)。
constructor(props) {
super(props);
this.state = {
sendOTP: false,
phone_number: "",
currentUser: null,
otp: "",
isButtonDisabled: true,
error: '',
cardAnimation: 'cardHidden',
};
}
componentDidMount() {
this.setupRecaptcha();
setTimeout(() => {
this.setState({cardAnimation: ""}); …
Run Code Online (Sandbox Code Playgroud) 我正在尝试在 firebase 函数上运行 Next.js,并且之前已经成功部署过。但是,在添加 webpack 插件 (svgr) 并进行进一步自定义后,我在构建时遇到了错误。它是在 Next.js 自动优化页面时成功编译后发生的。
我的函数文件夹和我的 dev 文件夹的依赖项完全相同,除了函数文件夹有两个附加项(用于 firebase)。
经过检查,它似乎认为我有多个 React 实例。在我的 /app 文件夹之外以开发模式运行应用程序工作正常,但是,在开发模式下在 /functions 文件夹之外运行应用程序仍然无法正常工作。
Error occurred prerendering page "/": Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
Error occurred prerendering page "/404.html": Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
下一个.config.js …
最初,我将 distDir 设置为 Firebase Functions 目录中的一个文件夹进行部署,但是,在开发模式下运行应用程序时,React 的重复导致了一些错误,因此我不得不将其注释掉。
有没有办法next build
在命令中指定命令输出目录?喜欢next build dir='../functions/next'
。
或者有没有办法将开发构建目录(来自命令)与配置中的next
生产构建( )分开?next build