Cannot set up Sitecore Containers template for JSS Next.js apps


Description

Setting up the Sitecore Containers template for JSS Next.js apps might hang if using Sitecore.DevEx.Templates version 1.6.1 and earlier and having installed .NET versions later than 3.1. The issue occurs when running the following commands:

dotnet new sitecore.nextjs.gettingstarted -n MyProject
script is hangs on ‘Initializes the JSS project’ step execution.

Solution

To resolve the issue, proceed as follows:

  1. Skip the "Initializes the JSS project" step execution when creating your solution and project through the command
    "dotnet new sitecore.nextjs.gettingstarted -n MyProject"
  2. Run create-jss-project.ps1 manually.

Notes: