Some small bugs detected

Hello plasmic team! Thank you for the awesome work you’re doing. Plasmic is really fun to use !

I notices a few bugs :
. when style preset is used in an element, it isn’t displayed in the design panel. Furthermore, the layout style from the preset isn’t taken into account in the element : it’s always a free box.

. the preview values of a state isn’t saved (I’m using API calls from Supabase which are not rendered in Plasmic Studio)
. when using rem as default font style for accessibility, the default plasmic component texts are really small
. Impossible to use a lottie component. It works in Plasmic Studio but there is an error when using it in localhost :

Has no one else encountered these bugs?
Don’t they make coding with Plasmic more complicated ?

Hi @clement_pain, thanks for reporting these! We’ve acknowledged the issues and added them to our team’s backlog. We’ll keep you posted once they’re prioritized.

For the Lottie issue, could you also try setting this up in a fresh local project and see if it works there? It’s possible there’s a configuration-related issue in the current setup.

Hi ! Thank you for your answer. I still have the same issue with a new local project when running npm run build : Error: PLASMIC: Failed to load render__SI7poAJlBY0N.js: ReferenceError: document is not defined
Error that I don’t have when removing the lottie component from the new blank project.

Hi @clement_pain, thanks for the update. We’re looking into this and will post an update once we have progress to share.

Hi @clement_pain, could you share the Node.js version and Plasmic CLI version you’re using?
Also, could you let us know your project ID and whether you’re using codegen or the loader?

Node.js version : v23.11.1
@plasmicapp/loader-nextjs”: “^1.0.439”
@plasmicapp/react-web”: “^0.2.402”

project ID : jnqaidscuewqrzewdscm
We’re using loader in the project.

Hi @clement_pain, this should be working now. Please make a small change and publish your project. Let me know if you still need any help.

Hi @abbas_nazar , it seems that the lottie files are working now !
But the other three bugs I noticed don’t seem to be solved as yet. Will they be soon ? In particular, not displaying the style from a style preset in the design panel, it’s quite annoying. It used to work before.

Hi @clement_pain, presets should now appear in the design tab. The other issues have been added to our backlog, and we’ll share an update once there’s progress.

1 Like

@clement_pain Is there any more detail you can provide for the state preview value bug you mentioned? I have been able to spot some UI issues with component state, but I’m not sure if I’ve reproduced the exact issue you’re seeing.

Thank you for your concerns. The idea is that I receive data from an API using the side effect component. I store this data into a state and I use the state on my page to display or update data.
While making changes in the studio, I can’t access this data to visualize the page’s layout. So, I’m using the preview value of the state. The issue is that this value is temporary, I have to paste the data each time I get back to the project. It would be a great update to make the preview value of a state persistent.