在尝试使用react-admin官方文档中的自定义login页面时,我遇到了这个错误。
index.js:1 Warning: Failed prop type: The prop `theme` is marked as required in
`ThemeProvider`, but its value is `undefined`.
在MyLoginPage.js中,我有以下代码
import * as React from 'react';
import { useState } from 'react';
import { useLogin, useN
我有一个名为BasicDelete的react组件,并且我正在尝试创建一个form using antd。但是当我构建typescript应用程序时,我得到了一个错误。 // This is how I am trying to create the form component
const BasicDeleteForm = Form.create({
mapPropsToFields(props: {
workFlowData: {
reason: string;
};
}) {
return {
迁移到Storybook 6.4
我有一个正在加载Vue组件的故事,我一直失败,出现了以下错误:
ModuleParseError: Module parse failed: Unexpected token (92:0)
File was processed with these loaders:
* ./node_modules/vue-docgen-loader/lib/index.js
* ./node_modules/vue-docgen-loader/lib/index.js
* ./node_modules/vue-loader/lib/index.js
You may n
我正在尝试将Storybook添加到现有的React应用程序中,但是导入的svg文件会出现错误。svg的导入和使用方式如下:
import Border from './images/border.inline.svg'
...
<Border className="card__border" />
在运行和构建应用程序时,这是可行的,但我在Storybook中遇到了错误。怎么会这样?
Failed to execute 'createElement' on 'Document': The tag name provi
我正在尝试创建一个带有formik窗体的自定义颜色选择器
问题是父组件的颜色没有改变:
import {SketchPicker} from "react-color";
export const MyColorPicker = ({label, ...props}) => {
// with useField is should not use onChange but i get an error without defining it myself
const [field] = useField(props);
const [color, setCo
react-admin应用程序向我显示了这个错误:
Attempted import error: 'useRecordContext' is not exported from 'react-admin'.
这个错误发生在我试图导入一个react-admin组件或钩子react时,类似于下面的图像:
因此,请告诉我,如果我必须更新react admin versión或其他任何东西,我目前正在根据下一个图像使用这些依赖关系:
我是非常新的反应,并一直使用反应故事书,以建立组件,教我自己的反应UI。我也在尝试学习react引导,这是推荐的样板。
当我试图加载一个使用react引导的组件时,我得到了一个错误。
以下是错误:
Nav is not defined
ReferenceError: Nav is not defined
at eval (webpack:///./src/stories/index.js?:114:9)
at renderMain (webpack:///./~/@kadira/storybook/dist/client/preview/render.js?:108:17)
我目前正在尝试用Storybook设置redux-toolkit。然而,当在storybook中查看我的组件时,我的选择器返回undefined。当我将我的应用程序作为一个普通的React应用程序运行时,选择器返回适当的状态。 我如何使用Redux设置Storybook,以便我的选择器从存储中实际返回预期的状态? 这是我的故事书故事: import { Meta, Story } from "@storybook/react"
import ContactInfo from "./ContactInfo"
import { Provider } from
我正在创建一个使用Nextjs的React应用程序。 我真的想对我的BO使用react-admin。我试过test example,和react配合使用,它工作得很好。不幸的是,虽然我试图在next js中包含一些代码,但它不能工作。 我创建了/admin/dashboard.tsx文件,并添加了下一步代码(之前我自己测试过-工作代码): import * as React from 'react';
import PostIcon from '@material-ui/icons/Book';
import UserIcon from '@mater