1

I ran the command jss start:react , getting the error.

Error occured while trying to proxy to:

 localhost:3000/sitecore/api/jss/dictionary/myjssapp/en?sc_apikey=no-api-key-set. 

I am working on a disconnected mode.

My command prompt error

D:\JSS-REACT-APP\myjssapp>jss start:react
> npm run start:react --

> myjssapp@12.0.0 start:react D:\JSS-REACT-APP\myjssapp
> react-scripts start

[HPM] Proxy created: /sitecore  ->  http://localhost:3042/
[HPM] Proxy created: /data/media  ->  http://localhost:3042/
Starting the development server...

Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
Compiled with warnings.

./src/components/YouTubeEmbed-Component/index.js
  Line 16:   elements must have a unique title property                                                        jsx-a11y/iframe-has-title
  Line 19:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

[HPM] Error occurred while trying to proxy request /sitecore/api/jss/dictionary/myjssapp/en?sc_apikey=no-api-key-set from localhost:3000 to http://localhost:3042/ (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /sitecore/api/layout/render/jss?item=%2F&sc_lang=en&sc_apikey=no-api-key-set 
  • Is the command to start in connected mode as - jss start:connected. Also please share the .html and .ts generated file for the YouTubeEmbed-Component – Abhay Dhar Oct 3 at 9:15
  • I am working on a disconnected mode, I removed this YouTubeEmbeded-Component, Still facing the prob "can not read the property 'sitecore' of null" – Prince Vaidya Oct 3 at 9:37
  • I can see in the developer console (504 Gateway timed out error) – Prince Vaidya Oct 3 at 9:39
  • 504 Gateway timed out error - Is the Sitecore Instance on Azure ? – Abhay Dhar Oct 3 at 9:55
  • its a disconnected mode development.....i am not using sitecore instance and also its not in Azure – Prince Vaidya Oct 3 at 10:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.