ym1198
ym11982y ago

Shared logic import in deno gives lsp error , though it actually works

Very minor issue, I am okay even if it is not fixed. But just thought to share. I can import common logic (function/variables/etc) from other scripts When I do console.log it actually prints that value, so it is working but it still gives error as shown in image
6 Replies
rubenf
rubenf2y ago
it's likely your lsp server cannot easily reach your api server
ym1198
ym1198OP2y ago
But it works for other lsp stuff, so i feel there is no problem in nginx config of lsp
http {
location /ws/ {
proxy_pass http://lsp_us;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
http {
location /ws/ {
proxy_pass http://lsp_us;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
part of my nginx config for lsp
rubenf
rubenf2y ago
That's not what I'm saying and not related This configure client to lsp The issue here is LSP to api But anyway its such a nit, not worth fixing your config
ym1198
ym1198OP2y ago
yes i agree unless i get demand for it from seniors, i will leave it The problem is that types are not getting inferred , though it is working Can you tell me what to check to debug this issue
rubenf
rubenf2y ago
lsp server need to be able to contact the api server at the same domain than the browser
ym1198
ym1198OP2y ago
can you be more detailed or give some hint like how can i check this

Did you find this page helpful?