Hello Plasmic Team,
I need your help diagnosing an issue related to Code Components not appearing in Plasmic Studio after a component rename. I’ll explain exactly what happened, what worked before, what broke after, and the configuration changes made.
What Was Working Originally
Before any renaming, I had two code components working perfectly:
SupabaseUserSession
SupabaseForm
They were correctly detected by the Plasmic Studio interface.
They appeared under Code Components, were draggable, and usable in any page.
The original registration looked like this:
PLASMIC.registerComponent(SupabaseUserSession, {
name: "SupabaseUserSession",
props: {},
});
PLASMIC.registerComponent(SupabaseForm, {
name: "SupabaseForm",
props: {
table: "string",
action: "string",
payload: "object",
where: "object",
},
});
At this stage:
-
Code components synced correctly
-
Studio recognized them
-
They were visible and functional
-
No deployment errors
Everything was stable.
What I Changed (and regret doing)
At some point, I tried renaming the components to:
-
CorporativeUserSession
-
CorporativeSupabaseForm
The intention was only organizational, but in hindsight it was unnecessary and caused issues.
After this rename:
-
Plasmic Studio stopped detecting the components
-
Even reverting the names back to the originals did not immediately fix the problem
-
“Sync code components” did not bring them back
-
Even duplicating the whole project did not help consistently
-
The components would randomly appear or disappear depending on sync timing
-
At one point a warning appeared in Studio saying the old component no longer existed
In short:
Changing the registered component name caused the component to become “orphaned,” and Plasmic Studio refused to rediscover it.
Necessary Changes for Deployment
TypeScript also required adding missing props, such as the children slot for the form wrapper.
The corrected version became:
PLASMIC.registerComponent(SupabaseForm, {
name: "SupabaseForm",
props: {
children: {
type: "slot",
hidePlaceholder: true
},
table: "string",
action: "string",
payload: "object",
where: "object",
},
});
And then the global context:
PLASMIC.registerGlobalContext(SupabaseUserSession, {
name: "SupabaseUserSession",
props: {},
});
Now everything builds and deploys correctly.
Current Problem
Even with:
-
Correct names restored
-
Correct props
-
Successful deployments
-
No TypeScript errors
-
Host URL responding correctly
Plasmic Studio intermittently refuses to show the two code components.
They sometimes appear in one project but not in another.
They disappear randomly after a sync.
I can’t consistently reproduce the components in Studio, despite having a clean configuration.
This leads me to believe there may be an internal caching or metadata indexing issue on Plasmic’s side.
Current plasmic-init.ts Code
Here is the clean final version that should work, but Studio still sometimes fails to show the components:
import { initPlasmicLoader } from "@plasmicapp/loader-nextjs";
import SupabaseUserSession from "./components/SupabaseUserSession";
import SupabaseForm from "./components/SupabaseForm";
export const PLASMIC = initPlasmicLoader({
projects: [
{
id: "",
token: "",
},
],
preview: false,
});
PLASMIC.registerComponent(SupabaseUserSession, {
name: "SupabaseUserSession",
props: {},
});
PLASMIC.registerComponent(SupabaseForm, {
name: "SupabaseForm",
props: {
children: {
type: "slot",
hidePlaceholder: true
},
table: "string",
action: "string",
payload: "object",
where: "object",
},
});
PLASMIC.registerGlobalContext(SupabaseUserSession, {
name: "SupabaseUserSession",
props: {},
});
(Project ID and token intentionally removed in this report.)
What I Need From Plasmic Support
-
Help diagnosing why renamed components become permanently undetectable, even after reverting.
-
Whether there is an internal cache that must be cleared for Code Components to reappear.
-
Whether there is a known issue with:
-
component renaming
-
global context components
-
slot-based components
-
multi-project syncing
-
-
How to force a complete “metadata re-scan” so Studio reliably picks up code components again.
Final Note
I fully acknowledge that renaming the component was unnecessary and caused complications.
I regret making that change.
Now I simply want to stabilize things and ensure Plasmic Studio correctly recognizes my Code Components again.
Thank you very much for your help.