agentsclimarketplace

Troubleshooting frontend

Skill ceilidhboy/skills/skills/troubleshooting-frontend

Agent skills for Laravel and PHP development. Installable via npx skills@latest add ceilidhboy/skills

Install
npx -y skills add ceilidhboy/skills --skill troubleshooting-frontend

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Troubleshooting TypeScript, React, and frontend-related errors.

SKILL.md

2.8 KB, 609 tokens by cl100k_base, as published. Nobody here has run it

Troubleshooting Frontend Issues

When to Activate This Skill

Activate this skill when encountering:

  • TypeScript compilation errors
  • Import resolution failures
  • React component errors
  • Inertia.js issues
  • Wayfinder action generation issues
  • Browser console errors
  • Type mismatches in React code

Common Frontend Issues and Solutions

Import Resolution Failures

Problem: Cannot find module '@/actions/...' Cause: Wayfinder action file not generated (route not registered) Solution:

  1. Activate routing-and-controllers skill
  2. Verify the route is registered in routes/web.php
  3. Run php artisan wayfinder:generate --no-interaction
  4. Verify the file exists in resources/js/actions/

TypeScript Compilation Errors

Problem: tsc --noEmit fails with type errors Cause: Type mismatches or missing type definitions Solution:

  1. Read the error message carefully — it shows the exact file and line
  2. Check if the type is defined in resources/js/types/generated.d.ts
  3. If missing, run php artisan typescript:transform on the backend
  4. Verify the PHP class has @TypeScript attribute (for Spatie Data)

Missing Type Definitions

Problem: TypeScript can't find types for PHP classes Cause: PHP class not transformed to TypeScript Solution:

  1. Ensure the PHP class uses Spatie Data with @TypeScript attribute
  2. Run php artisan typescript:transform
  3. Check resources/js/types/generated.d.ts for the generated type

React Component Errors

Problem: Component doesn't render or throws error Cause: Props type mismatch, missing data, or logic error Solution:

  1. Check browser console for error details
  2. Verify props match the component's type definition
  3. Check that data is being passed from the backend
  4. Use React DevTools to inspect component state

Wayfinder Action Issues

Problem: Action method not available (e.g., .form() missing) Cause: Route not generated with form support Solution:

php artisan wayfinder:generate --with-form --no-interaction

Then regenerate TypeScript types:

php artisan typescript:transform

Diagnostic Steps

  1. Check browser console — Look for JavaScript errors
  2. Run TypeScript checknpm run types
  3. Check generated files — Verify files exist in resources/js/actions/ and resources/js/types/
  4. Clear cachenpm run build or npm run dev

When to Activate Other Skills

  • Backend errors appearing: Activate troubleshooting-backend
  • Route/controller questions: Activate routing-and-controllers
  • Component structure questions: Activate inertia-react-development

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,984. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.