Unable to make Ant design SubMenu work

Hi Team, I am trying to register antD subMenu. But on plasmic I am getting error : " Error in Free Box : TypeError : Cannot read properties of null (reading ‘prefixCls’) ".
The code for registering SubMenu is :

import SubMenu from "antd/lib/menu/SubMenu";

registerComponent(SubMenu, {
  name: "SubMenu",
  displayName: "Menu - SubMenu",
  props: {
    children: {
      type: "slot"      
    }   
  },
  importPath: "antd/lib/menu/SubMenu",
  isDefaultExport: true,
});

Any help will be appreciated.

Hey @then_camel! I think this is caused because the antd SubMenu needs to be inside a Menu component. The code for registering the component seems to be correct.