Closed chaurasiagovind closed 5 years ago
Additional log
Response ___ body: (...) bodyUsed: false headers: Headers {} ok: true redirected: false status: 200 statusText: "OK" type: "basic" url: "http://localhost:9000/content/we-retail-journal/react.model.json" proto: Response
It is a known issue. We are planning to update the documentation to better describe that scenario. To enable the local server to serve the content, please proceed as follow:
API_HOST=http://localhost:4502 npm run start
[0] https://github.com/adobe/aem-sample-we-retail-journal/blob/master/react-app/src/server/CustomModelClient.js [1] https://github.com/adobe/aem-sample-we-retail-journal/blob/master/react-app/src/index.js#L42
Thanks, this seems to be working for me.
Reopen issue for bringing the provided information to DEVELOPMENT.md
Closing this one as PR #17 is merged
Code fails in ModelClient while navigating to http://localhost:9000/content/we-retail-journal/react/home.html
`fetch(modelPath) {
we get an object instead of model.json and model.json request gets delayed then page dosn't load.
Any Ideas.