Create a JSS app for an older version of Sitecore

Version: 19.x

JSS functionality depends on Sitecore functionality. If you are not using the most recent version of Sitecore, when creating a JSS application, you must use a template provided by a JSS version compatible with your Sitecore version.

To create a JSS project for an older version of JSS and Sitecore:

  1. Identify the correct JSS version for your Sitecore XP version.

  2. Run the JSS CLI installation command:

    RequestResponse
    npm i @sitecore-jss/sitecore-jss-cli@<version>

    Replace <version> with the version you want to use. For example, npm i @sitecore-jss/[email protected].

  3. In a terminal, create your JSS project by running the following command:

    RequestResponse
    jss create my-jss-app react --branch release/13.0.0
    Note

    The command uses the --branch option and you must provide the name of a branch in the JSS repository. You can use a release branch or any other branch from the repository.

  4. Change the directory to your application folder:

    RequestResponse
    cd my-first-jss-app
  5. Start the development server:

    RequestResponse
    jss start

Do you have some feedback for us?

If you have suggestions for improving this article,