easyblocks icon indicating copy to clipboard operation
easyblocks copied to clipboard

Error: When you create a new document you must pass a 'rootContainer' or 'rootTemplate' parameter to the editor

Open alihammad99 opened this issue 1 year ago • 6 comments

This error appeared when I tried to set-up easyblocks with Next.js following the example. Screenshot (465)

alihammad99 avatar Jun 11 '24 14:06 alihammad99

Hey @alihammad99, what's the full URL you used?

r00dY avatar Jun 12 '24 10:06 r00dY

Hey @alihammad99, what's the full URL you used?

Which URL? localhost:3000

alihammad99 avatar Jun 12 '24 10:06 alihammad99

Check out this link: https://docs.easyblocks.io/getting-started#open-the-editor. You should specify rootComponent in order to open the editor.

Btw, the error message is wrong, it should be rootComponent, not rootContainer, we'll fix that tomorrow.

r00dY avatar Jun 12 '24 17:06 r00dY

What if I want to render this on another route or in default route(localhost:3000)? Is there any way to handle this?

KrishEnacton avatar Jan 08 '25 05:01 KrishEnacton

Check out this link: https://docs.easyblocks.io/getting-started#open-the-editor. You should specify rootComponent in order to open the editor.

Btw, the error message is wrong, it should be rootComponent, not rootContainer, we'll fix that tomorrow.

just reminding, the error message still says rootContainer

cpx7 avatar Mar 13 '25 04:03 cpx7

This is where I am at, error message is still there. What is the fix though? I am not that knowledgable, but at least others ran into the same issue so perhaps I'm on the right track?

WA-Ladd avatar Apr 16 '25 16:04 WA-Ladd