Zidan
Explore posts from serversDeno LSP Issue with import maps?
I've been using an import map throughout my project like this:
deno.json file at the projects' root that has a map like this:
and then for example, import the handler.js file like this:
Although its still working just fine. I now see a red curly underline under or any other file that's being used in the same way. And when I hover over it, it says "Relative import path "handler" not prefixed with / or ./ or ../ deno(import-prefix-missing)".
Am I doing something wrong or is it just an LSP bug?
1 replies
KPCKevin Powell - Community
•Created by Zidan on 8/25/2023 in #front-end
SVG not displaying
I have a function that returns an SVG element like so:
That code works fine with the VS code live server. But when I use it in a local dev server, the
<path>
and <polygon>
elements' width and height become 0.
this is my CSS code:
NOTE:
in the VS code live server, the SVG element is hardcoded into the HTML, it is not rendered by a JavaScript function, but the SVG element code is identical in both cases.
Any idea what could be doing wrong?
Thanks in advance.22 replies
Serving multiple static files to an HTTP request
If a client sends a request for an array of static files names like so.
Using a Deno.serve server, is it possible to serve all files in response to that one request, instead of having the client request them one by one?
Would I need something like HTTP/2 or HTTP/3? And if so, are any of those supported in Deno?
37 replies