Error while migrating from the toolkit

Hi team Grafana, I have an old app plugin developed during the v7.x.x was live. Now I want to migrate that to work with grafana v10.x.x. So I am trying to run the migration command in my plugin repo but getting error as below

TypeError: Cannot read properties of undefined (reading 'length')
    at splitPrefixSuffix (file:///home/dev/.npm/_npx/c8ca622b04c0c218/node_modules/change-case/dist/index.js:189:29)
    at Object.sentenceCase (file:///home/dev/.npm/_npx/c8ca622b04c0c218/node_modules/change-case/dist/index.js:138:37)
    at Object.wrapper (/home/dev/.npm/_npx/c8ca622b04c0c218/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js:15:19)
    at Object.eval [as main] (eval at createFunctionContext (/home/dev/.npm/_npx/c8ca622b04c0c218/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:262:23), <anonymous>:13:114)
    at main (/home/dev/.npm/_npx/c8ca622b04c0c218/node_modules/handlebars/dist/cjs/handlebars/runtime.js:208:32)
    at ret (/home/dev/.npm/_npx/c8ca622b04c0c218/node_modules/handlebars/dist/cjs/handlebars/runtime.js:212:12)
    at ret (/home/dev/.npm/_npx/c8ca622b04c0c218/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:519:21)
    at renderHandlebarsTemplate (file:///home/dev/.npm/_npx/c8ca622b04c0c218/node_modules/@grafana/create-plugin/dist/utils/utils.handlebars.js:59:40)
    at renderTemplateFromFile (file:///home/dev/.npm/_npx/c8ca622b04c0c218/node_modules/@grafana/create-plugin/dist/utils/utils.templates.js:56:12)
    at getLatestPackageJson (file:///home/dev/.npm/_npx/c8ca622b04c0c218/node_modules/@grafana/create-plugin/dist/utils/utils.packagejson.js:12:23)

Can I get some help in understanding why this is happening?
I am running npx @grafana/create-plugin@latest migrate and also tried to do that with yarn but then it gave error saying
error Couldn't find package "@grafana/create-plugin" on the "npm" registry.

Thanks

Hi @kdmohide,

The error suggests an issue with the handlebars template attempting to use the sentenceCase function on an undefined value.

The plugin migration tool uses the sentenceCase function on both the plugin Organisation Name and the Plugin Description. Please ensure both of these have a non-empty value in your existing plugin before re-running the migration tool.

It is also important to mention the migration tool will only work with React plugins and won’t work with Angular plugins. Since you mentioned you built this plugin for an old Grafana version maybe that is also the case.