Problems bootstrapping a React SPA app from aem-spa-project-archetype

Avatar

Avatar
Boost 1
Level 1
adamhoc
Level 1

Likes

2 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
adamhoc
Level 1

Likes

2 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
adamhoc
Level 1

18-06-2019

When running an unmodified React SPA project I'm seeing two xhr calls being made to:

http://localhost:4502/content/demo/en.model.json

http://localhost:4502/.model.json

The first call to en.model.json returns successfully but then the second call is failing.

Why is the second call to ".model.json" being made? That URL looks wrong. How do I fix this?

Steps to reproduce

AEM Version: 6.5

I was able to start a React SPA project using the aem-spa-project-archetype.

  1. `mvn clean install -PautoInstallPackage -Padobe-public`
  2. Follow instructions to update CORS config in AEM. aem-spa-project-archetype/DEVELOPMENT.md at development · adobe/aem-spa-project-archetype · GitHub
  3. run `npm start` in the react-app directory.
  4. View network call in your browser while accessing localhost:3000

Replies

Avatar

Avatar
Validate 1
Level 1
estelito_reyes
Level 1

Likes

2 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
estelito_reyes
Level 1

Likes

2 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
estelito_reyes
Level 1

25-06-2019

Accessing localhost:3000 will throw this error because it's trying to retrieve the root path.

Try accessing your specific home.html page http://localhost:3000/content/demo/en/home.html

Avatar

Avatar
Boost 1
Level 1
adamhoc
Level 1

Likes

2 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
adamhoc
Level 1

Likes

2 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
adamhoc
Level 1

26-06-2019

Thanks Estelito!

I'd mark your answer as correct but I can't find the button.