rickbutterfield / Umbraco.Community.BlockPreview

Easy to use rich HTML backoffice previews for the Umbraco Block List and Block Grid editors.
MIT License
15 stars 10 forks source link

Error: [$controller:ctrlreg] #33

Closed christinamj closed 10 months ago

christinamj commented 10 months ago

I am trying to use the package in my solution that runs on .NET 7.0 with Umbraco v12 Installed the package successfully and set the custom view for one of my components in a block list to the "block-preview.html". I have a cs.html file in Views/Partials/blocklist/Components with the same filename as my component's alias. I try to just render out a p-tag. But this results in the following error:

Screenshot 2023-10-17 133926

And my component is now just empty when trying to add it to my block list.

image

I am a newbie so I might be missing something. Any help would be much appreciated!

christinamj commented 10 months ago

If anyone meets the same issue I got rid of the error by simply upgrading my Umbraco version to 12.2.0