You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
I've had the same issue, it's when the files referenced do not exist on the file system, the project will still work though. I have yet to find a solution in the dev server for this.
It might not necessarily be that the files don't exist, it could very well be that the files aren't where the system expects them to be. I know I had a rough time getting the mapping config'd properly for the compile between the source and where to put it.
My first iteration was to find/replace pathing in the compiled public folder.
Ultimately, I ended up writing a gulp task that would update the image pathing for templates and css so it would display correctly in localhost and in the compiled folder.
But I still haven't figure out how to get the patternlab.config to map things to where I need them.
Also, check to make sure that the pathing in the compiled files is right for where the compiled files will live. They're set to look at the site root but if your files are on the server in a subfolder, it won't work.
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:
Explicitly setting
type="application/javascript"
hasn't helped either.Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: