I’m trying put my custom react component in my plasmic project (codegen) then publish it to github so i can host it elsewhere
plasmic-host.tsx
import { PlasmicCanvasHost, registerComponent } from "@plasmicapp/host";
import React from "react";
import {NodeReactFlow} from './components/ReactFlow'
registerComponent(NodeReactFlow, {
name: "NodeReactFlow",
props: {
accountData: {
type: 'array',
defaultValue: []
}
},
importPath: './src/components/ReactFlow.tsx'
})
const PlasmicHost = () => {
return <PlasmicCanvasHost/>
}
export default PlasmicHost
it works fine in the project editor, i can see everything and it works as expected but when i publish it to github i dont see the custom component when i try to run it locally it says module not found