Comcast / Comcast/patternlab-edition-node-webpack

MIME type error

未关闭
#31 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
128
派生
92
PR 合并指标
30 天内没有已合并 PR

描述

## 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!

贡献指南

打开贡献指南

调研方向

报告指出了 /js 资源和浏览器 MIME 错误,但没有指出源文件或测试。首先追踪 webpack wrapper 如何提供或复制这些资源,然后重现该请求并验证它返回的是 JavaScript 而不是 text/html。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, nodejs, webpack
领域
build-system, frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。