-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotFoundError: The object can not be found here. (adding a nc-root div causes error) #7223
Comments
I added the div according to the instructions on the documentation for having decap custom mounted. guess you guys don’t have a solution, which is really disappointing. Probably would be a good idea to update the documentation then. P.S. Even without Snipcart, the same thing happens. |
@LunarShadow next time please include instructions url in original description, to avoid similar missunderstandings |
@LunarShadow You need to execute decapCms script after document is ready. Otherwise |
@hip3r could you add this clarification to the docs, please? |
* /decaporg/decap-cms/issues/7102 documentation for publish mode possible values * /decaporg/decap-cms/issues/7223 update custom mounting docs * pr comments
I don't get an error, but also nothing loads when I add the defer. code in admin.svelte
|
@hip3r can you investigate? |
using provided config.yml and svelte code
The difference is that I'm missing line |
Yes, this helped. Thank you guys for helping me figure this out. I really appreciate your time and effort. |
Describe the bug
Adding a
<div id="nc-root"></div>
to the page I want to load Decap causes an errorI am using SveltKit, and in routes/admin/+page.svelte I have the following code:
Loads fine without the div with nc-root id, but when I add the id, it give the below error (the error is in the placement of the div)
To Reproduce
add
<div id="nc-root"></div>
to svelte page where you want to load decapExpected behavior
decap loads in the div as it normally would, but respects the layout set for the page.
Screenshots
with div:
without div:
Applicable Versions:
[email protected]
github
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15
CMS configuration
Additional context
Side Note:
It seems Decap CMS doesn't load well with snipcart. It seems to refresh or something constantly and causes my browser to crash. Maybe I'm not doing something correctly, but figured I'd add it here as well.
Thanks
The text was updated successfully, but these errors were encountered: