Error while jss start:connected in sitecore jss next js sample app
2 Answers
I think you should give it a try to debug your JSS application, you can use the debug logging utilities provided by JSS. It Will help you to get more details about errors.
To resolve the error give it a try.
- Verify that the GraphQL endpoint is correct in package.json and the Sitecore app definition. Try opening the GraphiQL interface in a browser, using values from your config
(<sitecore hostname + graphQL endpoint>/ui?sc_apikey=<api key>)
to make sure the endpoint is working.
Check out other Troubleshooting JSS Next.js steps here.
Hope it helps!
adding values to parameters in .env
, scjssconfig.json
and ~sc102sc.dev.local\App_Config\Sitecore\JavaScriptServices
has resolved this.