4 ms·
The browser supports module imports. But your script must be of type ”module”: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/impo
by fmbb 1y ago
The browser supports module imports. But your script must be of type ”module”:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- TekMol 1y agoNot with paths like 'lit' that is used here.
- uallo 1y agoImport map: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...
- TekMol 1y agoThe example does not use an importmap attribute. Overall, the example does not seem like something that is supposed to run directly in the browser without some kind of intermediate step. That is why I asked what the minimal number of steps would be to download the example and have it work locally.