I hosted my web site in Github Pages using lit-html (no lit element) from its cdns.
import { html, render } from '//unpkg.com/lit-html?module';
import { until } from '//unpkg.com/lit-html/directives/until?module';
But the browser’s console fills up with lots of errors like:
“Loading module from “https://unpkg.com/[email protected]/directives/private-async-helpers.js?module” was blocked because of a disallowed MIME type (“text/plain”).”,
“Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://unpkg.com/[email protected]/directives/private-async-helpers.js?module. (Reason: CORS request did not succeed). Status code: (null).” and etc.
enter image description here
Does anyone have any idea why these errors occur and how could I solve them?
Thanks in advances for given time!
Greetings, Johanna Konova.
user25038396 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.