Trying to setup NextJs JSS and ran only the below simple commands and it fails with below error for the 4th command but this folder/files doesn't exist. None of the below 4 commands creates those files. What am I missing here?

  1. npx create-sitecore-jss
  2. jss setup
  3. jss deploy config
  4. jss deploy app -c -d

enter image description here

Error generating manifest Error: Unable to load manifest require D:\Sitecore\POC_Headless\nextjs\sitecore\definitions\config.js: Error: Cannot find module 'D:\Sitecore\POC_Headless\nextjs\sitecore\definitions\config.js'
  • Did you able to see the config files under zzz folder? After running the command jss deploy config? Commented Aug 21, 2022 at 7:57
  • @SumitBhatia Yes, I see the .config and deploysecret.config files in the app_config\include\zzz
    – SNew
    Commented Aug 21, 2022 at 13:45
  • can you check if you are in the right folder to run the command? I mean try running the deploy command under the folder that contains few folders and files. Like .generated, .next, data, node_modules etc? Commented Aug 21, 2022 at 15:19
  • @SumitBhatia the command deploy is being run in the root folder itself as you can see in the above snapshot in the description. It is looking for a file \sitecore\definitions\config.js that doesn't exist so obviously one of the above command is expected to create these files or any other command is required before deploy command
    – SNew
    Commented Aug 21, 2022 at 19:22
  • Yes can you try the installation in another folder and check again? Commented Aug 22, 2022 at 5:04

4 Answers 4


finally not clicking space will skip the manifest file.

enter image description here


As per the Sitecore documentation, applications built with JSS for Next.js are deployed differently than apps built with JSS for React, Angular, and Vue.js. The document states the following.

Specifically, when working with JSS for Next.js remember the following:

  • Do not use the JSS CLI commands jss deploy app or jss deploy files.

  • Use jss deploy items for code-first item import.

  • You do not have to configure a sitecoreDistPath in your package.json file.

  • The Link and RichText field helper components support client-side routing out of the box.

  • If you add .graphql files to your solution or make changes to your Sitecore data model (templates), you must update GraphQL introspection.

  • The Next.js app is configured to proxy Sitecore media requests. Therefore, the Layout Service excludes server URLs.

For more information follow this document.




Hope this helps.

  • Please recheck the above picture in the description, the instruction of this command "jss deploy app -c -d" is coming from the latest next js and latest jss version. It fails. See the suggestio provided while app creation by sitecore itself explicitly
    – SNew
    Commented Aug 23, 2022 at 16:52
  • 1
    The above description is also given in the Sitecore docs. If that is the case then I think a Sitecore support ticket would be a great option to identify the issue. Thanks Commented Aug 24, 2022 at 4:25


As @Sumit Bhatia suggested, select the template by clicking (entering) space and then run jss start, that will generate the src/temp/config file. Just now tried it and it worked just fine.

  • 1
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Jan 24, 2023 at 1:10

Running dotnet new sitecore.nextjs.gettingstarted -n <app_name> without any parameters worked in my case

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.