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

MIME type error

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, nodejs, webpack

調査の方向性

このレポートでは /js アセットとブラウザーの MIME エラーが特定されていますが、ソースファイルもテストも示されていません。まず webpack wrapper がこれらのアセットをどのように配信またはコピーしているかを追跡し、その後リクエストを再現して、text/html ではなく JavaScript が返されることを確認してください。

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

説明

I found the following issue:

I'm getting a Refused to execute script from '<URL>' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. error and can't seem to get the pattern library to see the files in /js.

Just wondering if there's something that could be done. I'm trying to add some javascript to build out more patterns but am stuck at this spot. Googling the error code hasn't led to any specific fix that would work with the way this pattern library app is setup. The app seems to run fine but the included js files aren't being seen:
image

Explicitly setting type="application/javascript" hasn't helped either.

Any help would be greatly appreciated!

主要言語
JavaScript
スター
128
フォーク
92
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

Comcast/patternlab-edition-node-webpack のほかの issue

Comcast/patternlab-edition-node-webpack の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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