#DropZone doesn't renders in ui components library

1 messages · Page 1 of 1 (latest)

slender nimbus
#

Still facing this issue, I added @measured/puck to my rollupOptions in vite.config.js like this:
external: ['react', 'react/jsx-runtime', '@measured/puck']

But this thing still doesn't work, I can't understand what Iam doing wrong

https://github.com/measuredco/puck/issues/406

GitHub

DropZone doesn't renders in puck editor after replacing components in ui-library. I tried to make it with column component from Demo. I had created two components: one inside of ui-library, sec...

#

I had rebuilded my ui-lib and relinked it to constructor, but that doesn't work well, more than that, as I understand, after adding some package to peerDependencies in package.json, It should work like rollupOptions, may be Iam wrong

storm sundial
#

Hm, what happens if you merge the two libraries into a single repo?

slender nimbus
#

It will be a huge mistake for me

#

I can't do this, because it will ruins all the project idea

#

I have another one repo, that depends on ui-library

#

I have a constructor and public site, in public I need to render a list of components of this ui-lib, in constructor I should render all the components to build layout of public site

#

We had created a constructor, which we built by ourself, but Puck editor is much better than our solution, so we decided to rebuild whole constructor

storm sundial
#

I just meant for debugging. I’m pretty sure your issue is two copies of Puck being installed during local development.

Alternatively try debugging without relying on symlinks. Publish your components and install into your constructor, or use npm pack