Creating a Property Editor | 14.latest (...
# package-development
f
I'm following this documentation here https://docs.umbraco.com/umbraco-cms/v/14.latest-rc/tutorials/creating-a-property-editor and get the following console error:
Copy code
Extension of alias "My.PropertyEditorUi.Suggestions" did not succeed creating an element class instance via the extension manifest property 'https://localhost:44360/App_Plugins/Suggestions/dist/suggestions.js'. The imported Element JS file did not export a 'element' or 'default'. Alternatively define the 'elementName' in the manifest.
Is this something I'm doing wrong or is this the expected result?
r
Hey @Frans de Jong - it looks as though there is some code missing from that example. The
.element.ts
file should have something like this at the end...
Copy code
ts
...
export default MySuggestionsPropertyEditorUIElement;

declare global...
a
Hi @Frans de Jong can you please give a try what Rick mentioned and let me know if that helps? Also, in your umbraco-package.json file can you please make sure that you have the correct path to "/App_Plugins/Suggestions/dist/suggestions.js" (as from the error message it seems you have a localhost path)? If the 2 above do not work, can you please elaborate on which step of the docs have you started noticing this error?
m
Sounds a lot like the issue I reported. https://github.com/umbraco/Umbraco-CMS/issues/16172
a
Interesting! As an FYI @Mark Drake I had someone move the issue you have created to the Umbraco.CMS.Backoffice repository( https://github.com/umbraco/Umbraco.CMS.Backoffice?tab=readme-ov-file#contributing) so that the right team can look into it (as it is more of a backoffice related issue than CMS) 💪
m
I blame this on Kevin! Haha I was just following his lead. He beat me to some RC2 feedback XD Thank you for moving it!