ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.14k stars 1.32k forks source link

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

Open harshittiwarihrt opened 5 months ago

harshittiwarihrt commented 5 months ago

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 commented 5 months ago

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