Anyone get Opinionated Umbraco Package Starter Template working with Umb17?

So I am trying to create my first package and am using the “Opinionated Umbraco Package Starter Template” to get started. Looking at the gitup the project has not been touched in over 5 months and is still meant for Umb 16 but when I follow the instructions and run the dotnet new command it installs the latest Umbraco 17. When I build and run the project I don’t see the example dashboard anywhere in the content area, just the normal Welcome to Umbraco and Redirect URL Manager dashbaords.

Has anyone gotten this package to work with v17?

Don’t think that is a v17 issue per say..

have you npm install and npm run build in the client folder?

ps.. once you have your development environment, you’ll have to update the test site to v17..

I don’t see any files with “NPM” in the name in the client folder. The test site is already on 17.1 That was the version installed when I ran the dotnet new command.

the opinionate package wraps this..
Umbraco Extension Template | CMS | Umbraco Documentation

and the v17 umbraco package extension template no longer includes these build commands.. so you need to do manually..

So you have node.js version 22 or later? (as mentioned in the pre-requisites)

you need to open a terminal and navigate to the client folder, and then run the npm install and npm run build commands..

you should then see files generated in the www/app_plugings/{your plugin name} folder of the package project

also whilst you are developing, any changes and you need to npm run build again.. or you can npm run watch, to have it automatically do it on file changes in the client folder.

But I think you will have to touch a few things to move everything over to umb 17…

target framework will be 9, should be 10.. and the test site has a umb 16 dependency, not 17..
and uSync can be updated to 17.1.0 too…

opinionated-package-starter/template/src/PackageStarter.TestSite/PackageStarter.TestSite.csproj at main · LottePitcher/opinionated-package-starter

opinionated-package-starter/template/src/PackageStarter/PackageStarter_nuget.csproj at main · LottePitcher/opinionated-package-starter

1 Like

it was the npm run build command I was missing. I did already take care of the 17 config thanks for the help

1 Like

For anyone stumbling on this post… the opinionated package starter template has now been updated for version 17:

Sorry it took a while :flushed_face:

2 Likes

Thabks for updating to v17 and updating the instrucions as well. I can attest that following the instructions now gets you a fully working base with no config changes or any errors.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.