Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

ExecJS Error

オープン
#111 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
bootstrap, javascript, rails
領域
frontend

調査の方向性

Gemをインストールした状態でProducts#indexを再現し、application.html.erbを調査します。特に、エラーで報告されているstylesheet_link_tagとjavascript_include_tagの行を確認してください。これらのアセットタグがExecJS::ProgramErrorを引き起こす理由を特定し、その後、Gemまたはいずれかのタグを削除せずにエラーが解消されたことを確認してください。

索引モデルが issue の本文から書いたものです。

説明

I have just installed this gem on my Rails project and I'm experiencing this error. I have tried to google it but have not found any useful info as to what is really causing it and the solution.

ExecJS::ProgramError in Products#index

Showing /home/ror/workspace/products/app/views/layouts/application.html.erb where line #7 raised:

TypeError: Cannot assign to read only property '__esModule' of #<Object>

Two lines in my application.html.erb are causing the error:
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>

Commenting these lines or uninstalling the gem removes the problem but I don't think those are the right solutions.

主要言語
SCSS
スター
2k
フォーク
437
平均マージ
1時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

twbs/bootstrap-rubygem のほかの issue

twbs/bootstrap-rubygem の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。