Skip to content

Adding scripts to html using Javascript doesn't work #1579

@quinton-ashley

Description

@quinton-ashley

Describe the bug

This project based on the old stackblitz HTTP server nodejs template works kind of https://stackblitz.com/edit/quintos-template but even though changes to the server are reflected when the server is run again, changes to the "client side" files are not. (as described in stackblitz/webcontainer-core#209)

I noticed the Javascript stackblitz template may be better suited for this but seems as of now that it is not. https://stackblitz.com/edit/quintos-template-test0 I really like the section in the sidebar where it lets you download dependencies super easily though! Great work so far! Hope this problem can get solved, I want to use Stackblitz with all my students. 😄

Link to the blitz that caused the error

https://stackblitz.com/edit/quintos-template-test0

Steps to reproduce

Go to page, receive error:

quintos-template-test0.stackblitz.io/:1 Refused to execute script from 'https://quintos-template-test0.stackblitz.io/load.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Expected behavior

Scripts added to the HTML file should be run.

Also minor bug, I updated my package quintos by deleting it and loading it again and the version number didn't change. Says 1.6.54 should be 1.6.55.

Screenshots

No response

Platform

macOS Big Sur and Chrome on Apple M1 chip Macbook Air 2021

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions