404 - file not found for file: dist%2Findex.js

0
Hi Community. I've created a blank app in Mx 10.24.8. When I run it from Studio all is fine but if I do "Deploy for Eclipse" and run from Eclipse then I can't open the same home page. It fails with: GET http://localhost:8080/dist/index.js?638999382481876754 NS_ERROR_CORRUPTED_CONTENT GET http://localhost:8080/dist/index.js?638999382481876754= Status 404 Not Found  
asked
1 answers
0

Hi Ilaya Basin,

 

This issue happens because the dist folder (where Mendix builds the client-side UI resources) is not generated when you Deploy for Eclipse.

So, Eclipse tries to load dist/index.js but the file doesn’t exist → 404 Not Found.

 

How to fix

 

Do one of the following:

 

Option 1 — Run once from Mendix Studio Pro

 

1. Open the project in Mendix Studio Pro

2. Click Run Locally

3. After successful run, the deployment/web/dist folder will be created

4. Now go back and run from Eclipse → Homepage will load fine ✔

 

Option 2 — Clean deployment folder

 

1. Close the app in Eclipse

 

2. Delete the folder:

<project>\deployment

 

3. Run again from Studio Pro to regenerate UI resources

 

4. Then run from Eclipse

 

answered