0

I have my App react (create-app-react...) My app access to file .json in the folder assets. In my test in local no problem but when publish in IIS (npm run build) can't access a this file .json, in console obtain this error: GET http://localhost:3700/assets/locales/en/isotope.json 404 (Not Found).

My structure app ... assets locales es isotope.json static css js index.html ...

Can you help me??

Jesús Sánchez
  • 95
  • 2
  • 11

2 Answers2

1

The problem was not having included in the MIME Types (IIS) the .json. Now Work It!!!

Thanks

Jesús Sánchez
  • 95
  • 2
  • 11
0

You have to manually copy the resources that are not added via require or import. Make sure you have assets folder in the site root on the server.

Aditya
  • 771
  • 5
  • 11