pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

🐛[BUG] wrapper like ProForm, ProFormList, ProTable are not working.

Open harshittiwarihrt opened this issue 1 year ago • 1 comments

I am thinking of using some Ant Design Pro components in my project where i am already using Ant Design, typescript and vite. Where in my page when i am trying to use wrraper like protable or proform then this error is coming:

image

and this is my current code

const Dashboard = () => {
  const [form] = Form.useForm();
  return (
    <ProForm form={form}>
      <ProForm.Item name="aaa" initialValue={'jiuiuh'}>
        <ProFormField name="aaa" readonly />
      </ProForm.Item>
    </ProForm>
  )
}

when i tried using without proform i can use proformfield and proformselect. but not with the wrappers which i desperately want to

harshittiwarihrt avatar Jan 24 '24 13:01 harshittiwarihrt

my versions are: "antd": "^5.13.2" "@ant-design/pro-components": "^2.6.48" "react": "^18.2.0",

harshittiwarihrt avatar Jan 24 '24 13:01 harshittiwarihrt