Comcast / Comcast/patternlab-edition-node-webpack
MIME type error
- Dominant language
- JavaScript
- Stars
- 128
- Forks
- 92
- PR merge metrics
- No merged PRs in 30d
Description
## 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:

Explicitly setting `type="application/javascript"` hasn't helped either.
Any help would be greatly appreciated!
Contributor guide
Research direction
The report identifies the /js assets and a browser MIME error but names no source file or test. Start by tracing how the webpack wrapper serves or copies those assets, then reproduce the request and verify that it returns JavaScript rather than text/html.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs, webpack
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100