React-jsonschema-form: Quote @rjsf/antd error!!!

Created on 16 Oct 2020  ·  13Comments  ·  Source: rjsf-team/react-jsonschema-form

import Form from '@rjsf/antd';
Error '@rjsf/antd' does not contain a default export (imported as 'Form').

Most helpful comment

Also do

import { withTheme } from '@rjsf/core';
import { Theme as AntDTheme } from '@rjsf/antd';
import 'antd/dist/antd.css';

const Form = withTheme(AntDTheme);

All 13 comments

image

image

Does import * as Form work instead?

__Prerequisites__

antd >= 4.0.0
@ant-design/icons >= 4.0.0
dayjs >= 1.8.0
@rjsf/core >= 2.0.0
npm install antd @ant-design/icons dayjs @rjsf/core

__Installation__

npm install @rjsf/antd

Also do

import { withTheme } from '@rjsf/core';
import { Theme as AntDTheme } from '@rjsf/antd';
import 'antd/dist/antd.css';

const Form = withTheme(AntDTheme);

me too,it`s a bug

Same

same

Same

same issue

same

Does someone want to contribute a PR to fix it? 😉

same

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MedinaGitHub picture MedinaGitHub  ·  3Comments

abhishekpdubey picture abhishekpdubey  ·  3Comments

anttivikman picture anttivikman  ·  3Comments

epicfaace picture epicfaace  ·  3Comments

norim13 picture norim13  ·  3Comments