All threads / How to setup Deno with Neovim's COC
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,

Join the discussion

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

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

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

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.