Hi, I am creating a Code Component and have sync it back to Plasmic.
I was see my Code Component reflected correctly inside the app which was great!
To test it out, I have put it into a dummy page.
However, when I tried to load it in my NextJS project
import React, { useState } from 'react';
import { PlasmicComponent } from '@plasmicapp/loader-react';
export default function Authentication() {
return (
<PlasmicComponent
component="TestComponentsPage"
/>
)
}
I can only see other project components like Text, Button but not the Code Component.
My sync host is http://localhost:3000/plasmic-host
I have attached the screenshot below
Hello! Is it possible that the page is not importing the plasmic init file where your registrations are being called? You just need to make sure that those registrations are actually being executed as part of the rendering of that page.
Thanks for the reply, that’s interesting, I followed the example and call the PLASMIC.registerComponent( underneath export default but it looks like I need it to be in the default plasmic-init of the app.
Thanks for the explanation, maybe we should include this information in the doc so other developers can be aware.
Thanks