Comcast / Comcast/patternlab-edition-node-webpack

MIME type error

Ouverte
#31 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
128
Forks
92
Métriques de merge des PR
Aucune PR mergée en 30 j

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:
![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!

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript, nodejs, webpack
Domaine
build-system, frontend
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
30/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.