Hi everyone,
I’ve been trying to add a custom portal page to my EspoCRM installation (v9.0.6) but I keep hitting a wall — no matter what I do, the route returns a 404. 🧩 What I’ve Done:
It seems Espo’s rebuild process isn’t registering the JS files at all. Has anyone seen this before? Is there a rebuild debug mode or something else I can check?
Thanks in advance for any insights 🙏
— Clive
I’ve been trying to add a custom portal page to my EspoCRM installation (v9.0.6) but I keep hitting a wall — no matter what I do, the route returns a 404. 🧩 What I’ve Done:
- Manually placed JS files in client/custom/src/portal/views/my-custom-page.js and client/custom/src/portal/routes.js
- Verified frontend/libs.json exists
- Confirmed client/src/view.js is present
- Set useCache => false and isDeveloperMode => true in data/config.php
- Ran php rebuild.php and also cleared data/cache/ manually
- Checked for data/cache/client-custom.json — it’s never generated
- When testing Espo.require('custom
ortal/views/my-custom-page') in the portal console, I get Module not found
- Portal ID is correct
- Custom route name is #MyCustomPage
- Page defined using the standard view class
- File permissions appear fine
- I’ve tried this both on Cloudways and Krystal.io — same result
It seems Espo’s rebuild process isn’t registering the JS files at all. Has anyone seen this before? Is there a rebuild debug mode or something else I can check?
Thanks in advance for any insights 🙏
— Clive
Comment