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