Files
rspade_system/storage-broken/README.md
root 77b4d10af8 Refactor filename naming system and apply convention-based renames
Standardize settings file naming and relocate documentation files
Fix code quality violations from rsx:check
Reorganize user_management directory into logical subdirectories
Move Quill Bundle to core and align with Tom Select pattern
Simplify Site Settings page to focus on core site information
Complete Phase 5: Multi-tenant authentication with login flow and site selection
Add route query parameter rule and synchronize filename validation logic
Fix critical bug in UpdateNpmCommand causing missing JavaScript stubs
Implement filename convention rule and resolve VS Code auto-rename conflict
Implement js-sanitizer RPC server to eliminate 900+ Node.js process spawns
Implement RPC server architecture for JavaScript parsing
WIP: Add RPC server infrastructure for JS parsing (partial implementation)
Update jqhtml terminology from destroy to stop, fix datagrid DOM preservation
Add JQHTML-CLASS-01 rule and fix redundant class names
Improve code quality rules and resolve violations
Remove legacy fatal error format in favor of unified 'fatal' error type
Filter internal keys from window.rsxapp output
Update button styling and comprehensive form/modal documentation
Add conditional fly-in animation for modals
Fix non-deterministic bundle compilation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-13 19:10:02 +00:00

1.7 KiB
Executable File

Storage Snapshot - Broken Bundle State

Created

2025-11-12

How Created

  1. Ran php artisan rsx:dev:update_npm
  2. Command executed:
    • npm update (no packages changed, already up to date)
    • rsx:clean (cleared all caches)
    • rsx:bundle:compile (compiled all 12 bundles via CLI)

What This Demonstrates

This snapshot captures the broken state where CLI-built bundles are missing JS stubs.

Observable Issue

When loading /contacts after this CLI build:

JavaScript Console Error:
Frontend_Clients_Controller is not defined
at Frontend_Bundle__app.8e0e8df3.js:19231:31

The Problem

  • JS stub file EXISTS: rsx-build/js-stubs/Frontend_Clients_Controller.js is present in filesystem
  • Bundle is MISSING stub: The compiled Frontend_Bundle__app.8e0e8df3.js does not include the stub
  • Result: JavaScript references to Frontend_Clients_Controller fail at runtime

Key Files to Examine

  • rsx-build/js-stubs/*.js - Generated stub files (DO exist)
  • rsx-build/manifest_data.php - Manifest metadata (check if stubs are registered)
  • _compiled/Frontend_Bundle__app.*.js - Compiled bundle (check if stubs are included)

Root Cause Hypothesis

The manifest may not be properly registering stub files during initial CLI build, causing the bundle compiler to skip them. Stubs might only get registered on a second pass when the system checks for existing stubs.

Reproduction Steps

# Start fresh
php artisan rsx:dev:update_npm

# Test (will show error)
php artisan rsx:debug /contacts --user-id=1

# Expected error: Frontend_Clients_Controller is not defined

Known Working State

Running php artisan rsx:clean followed by a browser page load will trigger a rebuild that DOES include stubs correctly.