Comcast / Comcast/patternlab-edition-node-webpack

MIME type error

Đang mở
#31 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
128
Fork
92
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## I found the following issue:

I'm getting a `Refused to execute script from '' 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](https://user-images.githubusercontent.com/1877436/43011257-83fee9d8-8c08-11e8-8f7e-89b1e6eb0167.png)

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

Any help would be greatly appreciated!

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Báo cáo xác định các asset /js và một lỗi MIME của trình duyệt, nhưng không nêu tệp nguồn hay bài kiểm thử nào. Trước tiên, hãy truy vết cách webpack wrapper phục vụ hoặc sao chép các asset đó, sau đó tái hiện request và xác minh rằng nó trả về JavaScript thay vì text/html.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, nodejs, webpack
Lĩnh vực
build-system, frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.