Troubleshooting
Follow the message in the app. Review the result before trying again.
For the desktop app. Installing the component package does not install it.
Open or create a project
- No app to start here
- No app with a dev script was found. Choose Open another folder and select the app’s folder.
- Several apps found
- Use Choose an app. Check its path and command before starting it.
- Setup stopped
- Open Details to read the failure. The folder made so far is kept. Fix the cause, then choose Retry. If you stopped setup yourself, use Resume setup in the same app session. Neither fixes a network or package error by itself.
- Name refused or folder exists
- Use an unused name. After a failed setup, Change the name returns to the form. To keep existing work, open the existing project instead.
Start the local server
Read the reason on the start card. Expand Show what it printed for the server output.
- Packages are missing
- Choose Install packages and start. Check the package-manager command and folder, then choose Install and start. Installing runs the project’s package scripts.
- The package lockfile needs updating
- Install anyway lets installation update the lockfile. Review that change. Choose Cancel to fix the mismatch first. Do not delete a lockfile to hide the failure.
- The port is already in use
- Choose the offered Start on port, or stop the other server if it is yours. If that server is the app you want, attach to it. Attached servers are read-only.
- The app needs a different Node.js version
- Switch to the version in the project’s version file or setup instructions, then choose Start again. If it only starts in your terminal, attach that server for read-only viewing.
- A required app setting is missing
- Set the named environment variable as the project’s setup instructions say, then start again. Keep secret values out of screenshots and shared logs.
- Compile error
- Open the named file and line. Choose Ask, when offered, to have your agent fix it. Review the change before restarting.
- The server stopped or did not answer in time
- Read its output, then choose Start again. If it is still running with a working local URL, use an existing server. A timeout does not mean the app is healthy.
Use an existing server
Choose Use a server that is already running, enter its local HTTP or HTTPS address, and choose Connect. Only localhost, 127.0.0.1, [::1] and other loopback addresses are accepted. If nothing answers, check that the server is running and the port matches.
An attached server is read-only. To edit source, start the app from Fragments. Attaching does not fix the start command or install dependencies.
Connect your coding agent
- Not installed or Not signed in
- Choose Install or Sign in. Fragments copies the command and opens your terminal. Paste it, finish the agent’s setup, and return. Fragments checks again.
- Update needed or Off
- Open the offered Settings. In Agents settings, use Check for updates under CLI updates.
- A turn failed
- Follow the reason shown. It may offer Sign in, Update or CLI settings.
The agent’s login is separate from signing in to the app you are building.
Find an element’s source
- Finding its line…
- The lookup is still running.
- Line unknown or Not linked to source.
- Read the reason. Choose Retry when offered, or select the element again. A file without a verified line is not an exact edit target.
Source linking needs supported React development information and, where needed, source maps. You can describe the element to your agent instead, but review the files it changes. On an attached server, start it from Fragments to enable source editing.
Picture a page
- Needs signing in
- Choose Sign in on the page and complete the app’s own login.
- Needs an example
- Enter a real route parameter value, then choose Picture it.
- Could not be pictured or No page here
- Read the reason and choose Open the page to inspect the route. Then choose Try again.
- This page showed nothing
- Check whether it needs sign-in or more time to load. Use the offered sign-in or retry.
- Pictures could not start
- Choose Retry.
- Captured the first
- The picture is partial. Read the reason on the capture receipt.
A missing or partial picture cannot prove a page is unchanged. Check the live page and capture coverage before relying on a before-and-after comparison.
Resolve an Undo conflict
Undo checks that files still match what the change left. If a file was edited again, or a deleted file was recreated, it keeps the newer work and reports a conflict.
- Find the file
- Read the named file in the change receipt. Choose Show, when offered, to reveal it in Finder or File Explorer.
- Keep newer work
- Save the newer work before resolving. If the receipt names another branch, protect your current work before switching to it.
- Retry Undo
- Checks again. It never forces an overwrite.
- Other files
- An offered Undo for other files undoes them and leaves the conflicting ones in place.
Undo restores recorded project files only. Restoring a package manifest and lockfile does not restore node_modules. Check your dependencies if those files changed.
Next steps
- Get started with FragmentsOpen, change and review a project.
- Checks and rulesRead findings and see what was checked.