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
1 messages · Page 1 of 1 (latest)
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
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
Hm, what happens if you merge the two libraries into a single repo?
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
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