hyperstack-org / hyperstack-org/hyperstack

hyper-console not working

Open
#188 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
538
Forks
41
PR merge metrics
No merged PRs in 30d

Description

I get an error in browser js console when using hyper-console:

uncaught exception: RuntimeError: The package ReactRailsUJS was not found. Add it to the webpack client_and_server.js manifest.

Possibly react_ujs.js is not bundled into the gem js sources (alongside react.js), and missing from hyper-cosole.min.js

also i had to change
<%= react_component '::DebugConsole', #{console_params}, { prerender: false }
to
<%= react_component 'Hyperloop::Console::DebugConsole', #{console_params}, { prerender: false }
in hyperloop_console.rb

Is this the correct direction to submit a patch?

Contributor guide

Open the contributing guide

Research direction

Start by inspecting hyperloop_console.rb, react_ujs.js, hyper-cosole.min.js, and the webpack client_and_server.js manifest. Reproduce the browser-console error with hyper-console and trace whether ReactRailsUJS is bundled; also verify the DebugConsole component reference. Done means hyper-console loads without the reported RuntimeError and the console renders correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, rails, react, ruby, webpack
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.