Ask A Question

Notifications

You’re not receiving notifications from this thread.

How to setup Deno with Neovim's COC

phq asked in Javascript

Hi,

I am using Neovim, COC with LSP. I installed Deno for Javascript. It is
Plug 'williamboman/nvim-lsp-installer'
Plug 'prabirshrestha/vim-lsp'
Plug 'neovim/nvim-lspconfig'
Plug 'glepnir/lspsaga.nvim'

The plugins work great, it is fast and helpful. However, I always get the error at "import" statement
Relative import path "@hotwired/stimulus" not prefixed with / or ./ or ../ from

This error happens with this import statement
import { Controller } from '@hotwired/stimulus'

This is very common import statement that I think it was generated by default when creating a stimulus controller.
I am not sure what is wrong and how to avoid it. Maybe, I need to add some config for Deno. But I am not so familiar with this tool.

Could you please let me know how to avoid this issue ?

Thanks,

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.