我试图在next.js中为我的博客添加一个动态的目录。代码在我的本地主机上运行得很好,但是当我将它部署到vercel时,我得到了以下错误:
TypeError: Cannot read properties of undefined (reading 'content')
at BlogPost (/vercel/path0/.next/server/pages/posts/[slug].js:111:23)
at Jc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.m
我正在显示react本机闪屏,并试图将其隐藏在useEffect中,但如果在App.js中使用AWS身份验证器,则不会调用useEffect。当我不使用认证器的时候,它可以正常工作。
App.js
import Amplify from 'aws-amplify';
import config from './src/aws-exports';
import { withAuthenticator } from 'aws-amplify-react-native';
import Auth from '@aws-amplify/auth&
我有这样一个流星应用程序:
import React from 'react';
import { Meteor } from 'meteor/meteor';
import { render } from 'react-dom';
import { Mongo } from 'meteor/mongo';
Things = new Mongo.Collection('things');
if (Meteor.isClient) {
Meteor.startup(() => {
Tracker