Make sure you’ve met the requirements before proceeding.
Build the extension
From the repository root:This produces a UMD bundle in
dist-pkg/pastures-0.1.0/.Serve the built package
http://127.0.0.1:4500 serving the contents of dist-pkg/.Open the Extensions page in Rancher
In your Rancher Manager UI, click the ☰ hamburger menu and select Extensions.
Enable Developer Load
On the Extensions page, click the ⋮ (three-dot) menu in the top-right corner and select Enable Developer Load. Confirm when prompted.This enables the Developer Load banner at the top of the Extensions page.
URL format
The Developer Load URL follows this pattern:- host —
127.0.0.1when running locally, or the IP/hostname of the machine runningyarn serve-pkgs - port —
4500by default - pkg-name —
pastures - version — matches the version in
package.json(currently0.1.0)
Troubleshooting
| Problem | Solution |
|---|---|
| ”Failed to load” error | Verify yarn serve-pkgs is running and the URL is reachable from your browser |
| Extension loads but no sidebar items | Hard-refresh the Rancher UI (Cmd/Ctrl + Shift + R) |
| CORS errors in console | Ensure Rancher and the serve-pkgs host are on the same network or configure CORS headers |
| Extension not updating after rebuild | Re-run yarn build-pkg pastures, then reload the extension in Rancher |