TypeScript error from adding props to codegen interface

Actually, I might have been wrong in my previous replies.

Just met the problem again:

The top element in the component is a simple div - no fancy things there.

As the fix, I decided to regenerate the plasmic component’s code again (along with the skeleton - I had to manually remove it, in order to have it regenerated). This caused the following change in my files:

And it fixed the problem.

So, the problem seem to happen if you rename the top element of your component, after its’ skeleton code had already been generated.

As a fix, regenerate the component skeleton code.

1 Like