<-- Back

Popup appears when navigating to application after React client migration: [No translation]

Issue

After migrating to the Mendix React client, the app does not function correctly. When navigating to the application, a popup message appears with the following text: [No translation]. No further actions can be taken inside the application.
 
In the console logs, the following message is found:
 
 Expected response body to be JSON. Instead received: "<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
"
    at b (mxui.js?639231615761562545:70:24578)
    at async v (mxui.js?639231615761562545:70:24438)
    at async m (mxui.js?639231615761562545:70:24397)
    at async a (mxui.js?639231615761562545:70:21107)
    at async mxui.js?639231615761562545:70:21542
    at async p (mxui.js?639231615761562545:70:23224)
    at async mxui.js?639231615761562545:5:148557
 
In the network tab, there is a failed call to url/metamodel.json. The call fails with a 404. 

Environment

Studio Pro v10.7.0 and newer

Cause

The custom index.html for the Dojo client is incompatible with the React client.

Solution / Workaround

The structure of the index.html file is different for React and Dojo clients. To make sure the application works correctly, follow these steps:

  1. Delete the custom app/theme/web/index.html, or rename it temporarily.
  2. Run the local deployment and copy the app/deployment/web/index-example.html to app/theme/web/index.html. This is the new index.html file.
  3. Apply customization where required.

To keep the custom index.html files for both clients, name the React client index file index-react.html. This file takes precedence when the React client is enabled, while the index.html is used for Dojo client deployments.

Internal information related

CJZ85RLTA/p1739286046557679

Additional information

Mendix documentation: Mendix React client

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.