I'm facing an issue with our Forge app where the function for a read-only custom field is failing. The function is defined in index.js and referenced in manifest.yml, but the app throws a error during execution. I've tried cleaning, redeploying, and debugging with forge tunnel, but the issue persists.
index.js
In Forge, a read‑only custom field must reference a function declared under the `function` module in `manifest.yml`, not the resolver definition directly. Your manifest defines `function: getAbhi` inside the custom field, but there’s no corresponding entry under the top‑level `function:` section—only `main` is defined there. The `function` key inside a field must point to a function module key, not a resolver method. To fix this, add a new function module block such as `- key: getAbhi handler: index.handler` under `function:` and keep your resolver definition as is. That tells Forge to expose the resolver’s `getAbhi` handler properly for use by your field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.