Custom components not appearing in Plasmic Studio.

Late to the party but I had the same problem and spent quite a lot of time trying to fix it. I post this here for reference for people arriving on this page with the same error.

When trying to register a component, I was faced with the same error :

PlasmicLoader: Using deprecated method registerComponent for component substitution. Please consider using substituteComponent instead.

My import looked like this :

import EchartsComponent from "./components/Echarts";
PLASMIC.registerComponent(EchartsComponent, {
  name: "Echarts"
});

I was because my call to registerComponent didn’t match the signature of the registerCoponent API.

import EchartsComponent from "./components/Echarts";
PLASMIC.registerComponent(EchartsComponent, {
  name: "Echarts",
  props: {},
});

props is mandatory, event if your component doesn’t have any.

1 Like