diff --git a/packages/cli/create-strapi-starter/utils/build-starter.js b/packages/cli/create-strapi-starter/utils/build-starter.js index 88ede9413b..59e366fc06 100644 --- a/packages/cli/create-strapi-starter/utils/build-starter.js +++ b/packages/cli/create-strapi-starter/utils/build-starter.js @@ -167,9 +167,9 @@ module.exports = async function buildStarter({ projectName, starter }, program) run: false, }; if (starterPackageInfo.version) { - starterPackageInfo.template = `${starterJson.template.name}@${starterJson.template.version}`; + generateStrapiAppOptions.template = `${starterJson.template.name}@${starterJson.template.version}`; } else { - starterPackageInfo.template = starterJson.template.name; + generateStrapiAppOptions.template = starterJson.template.name; } // Create strapi app using the template