Shell apps
Troubleshooting
Fix the most common problems when building and publishing a Shell app.
The app doesn't load
| Problem | Likely cause | What to do |
|---|---|---|
| The Shell says the app can't be found | The address uses the wrong slug | Open /apps/<app-slug> with the slug shown on the app's page in the Client Portal, or its Shell path where one is shown |
| The app is missing from your usual Shell site | It isn't in prod. Each environment has its own Shell site (rolling out) | Open it on its environment's site, such as <workspace-slug>.dev.app.groundfloor.cloud, or promote it to prod. An environment that's suspended or has no site label, or a label such as qa, has no site, so its apps appear nowhere |
| The Shell shows the app but no content | Nothing has been published yet | Run npm run release and gf apps publish --path release.zip, then check the app's Releases tab |
| The Shell shows an error where the app should be | appId in groundfloor.manifest.json and APP_ID in src/appIdentity.ts don't match the slug | Make all three the same, then publish again |
| The app crashes as soon as it opens | The app is wrapped in its own BrowserRouter | Remove it. The Shell already provides the router |
| Publishing works, but the old version still shows | The browser cached the previous release | Reload the page without the cache |
gf apps publish rejects the file | It isn't the release.zip from npm run release | Publish release.zip, not a ZIP of the dist folder |
Navigation and styles
| Problem | Likely cause | What to do |
|---|---|---|
| Links take users out of the app | Links start with /, such as to="/records" | Use useAppPath("records"). See Manifest and routes |
| A page is missing from the navigation | It has no route in the manifest, or the route has "hidden": true | Add or unhide the route, then publish again |
| Your app changes how the Shell looks | Tailwind's base reset is on, or another framework's CSS is loaded globally | Keep preflight: false; load other frameworks with FederatedStyleRoot. See Styling |
| Inputs and buttons have no borders | CSS after @tailwind utilities overrides the kit's reset | Put your own rules in a Tailwind layer, before the utilities |
Data, files and flags
| Problem | Likely cause | What to do |
|---|---|---|
401 | The user isn't signed in, or the token expired | Get a fresh token with __GF_GET_ACCESS_TOKEN__() before each request. Locally, run gf login again |
401 from the data, files or flags API right after switching to getAppToken() | An app token was sent to Groundfloor's API, which refuses app tokens | Send the Shell site token (__GF_GET_ACCESS_TOKEN__()) to Groundfloor's API, and the app token only to your own backend |
getAppToken() throws app_not_found | The app ID is wrong, or the user can't open the app | Check the app's Who can open an app setting; pass appId if your code runs while another app is open |
getAppToken() throws app_token_route_missing | App tokens aren't offered where controlPlaneUrl points yet, or it points to the wrong address | Inside the Shell, leave controlPlaneUrl unset; otherwise pass https://platform.groundfloor.cloud. Keep sending the Shell site token to your backend until app tokens are available |
getAppToken() throws app_tokens_disabled | App tokens aren't switched on for your cell yet | Keep sending the Shell site token to your backend for now. See Get a token for a Shell app |
403 on data | The user's role has no access to that collection | Grant it in Data → Data Vault → the collection's Access. See Data |
403 on everything | The user signed in but has no role in your site | Give them a role on the Users tab of App authentication |
404 on a collection | The collection name is wrong, or it doesn't exist in this workspace | Check the name in Data Vault |
| A file upload never appears | The upload wasn't confirmed | Call …/files/{file_id}/finalize after sending the file. See Files |
| A flag change doesn't show | The hooks check every 60 seconds, or the app reads another environment | Wait a minute; check which environment the app is bound to |
| It works locally but not on the Shell site | Locally you act as a team member; on the site, as an app user | Grant the app user's role access. See Local development |
Still stuck? Check your release on the app's page in the Client Portal, and the Coderunner logs if your app calls a backend.