Yes - At least that was enough for me to
# package-development
s
Yes - At least that was enough for me to complete the npm install
m
Copy code
src/dashboards/dashboard.element.ts:64:7 - error TS2322: Type 'string | number | boolean | number[] | string[] | UserModel | UserProfileModel | (ReadOnlyUserGroupModel | UserGroupModel)[] | null' is not assignable to type 'UserModel | undefined'.
  Type 'null' is not assignable to type 'UserModel | undefined'.

64       this._serverUserData = data;
looks like the examples might need some tlc (dotnet new umbraco-extension -n MyExtension -ex)
this._serverUserData = data as UserModel;
??
Seems fairly simple to drop the additional examples in from https://github.com/umbraco/Umbraco-CMS/tree/main/src/Umbraco.Web.UI.Client/examples wonder why they aren't part of the template -ex? Rather than forking to run from the repo in a pseudo backoffice enviroment?
5 Views