Hi,
Can you work well with the live server in visual studio code when all you’re working with is an html file and a bunch of modules (so NO node.js project) ? ( I want to practice importing and exporting modules but I cannot do that locally)
(I have feeling that asking this question is answering it
, you can tell me)
I’m an atom girl but for the sake of this live server I’m using VSCode. I can turn on the live server all right but I get this annoying error message. (translated)
Loading of module from ‘http://127.0.0.1:5500/DWT/static/static/synapse/setup.js’ is blocked because of a MIME-type (‘text/html’) that is not allowed.
I can click on ‘more info’ and I’m brought to an article on MDN that tells me to set an http header correctly.
So, how do I set an http header on the live server in visual studio code? When I google it, I find a link but I’m not allowed in.
https://docs.microsoft.com/answers/questions/393771/refused-to-apply-style-from-lturlgt-because-its-mi.html
I says (translated) : The OCSP-answer does not contain a status for the certificate that has been verified.
I’ve turned on settings sync but that doesn’t make a difference, still access that microsoft site and I haven’t found an answer on stack overflow.
I’ve added type=text/css)to my css link, type=“application/javascript” to a script in the head and type=module to a script tag because I’d like to import and export modules, which is the reason I’m working with visual studio code.
I have added the live server extension but when I click on account and then on ‘manage trusted extensions’ it says ‘this account has not been used by any extensions’
I use ubuntu 2021 (a linux distribution that looks a lot like windows)
My default browser is firefox and I’m reading an FCC article on the live server as I’m writing this.
I’ve been using atom for years now. I like atom but I cannot create modules and test them without a server, so either I have to start a node.js project and go back to my beloved atom or I have to somehow deal with this (first?) problem.
I’m probably going to start up an electron project anyway but just in case this is only a small issue that is easily resolved? Anyone?
Thanks and greets
Karin