Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'nr1' or its corresponding type declarations. (tsserver 2307) #426

Open
v3nd3774 opened this issue May 1, 2023 · 0 comments

Comments

@v3nd3774
Copy link

v3nd3774 commented May 1, 2023

Hi,

I'm using the following plugins to provide autocomplete in vim for javascript files successfully for react applications:

https://github.com/neoclide/coc.nvim

https://github.com/neoclide/coc-tsserver

The language server is unable to find source code to parse and provide autocomplete snippets for imports such as:

import { ChartGroup } from 'nr1';

Cannot find module 'nr1' or its corresponding type declarations. (tsserver 2307)

Is this possible at this time? Wanted to check if anyone had looked at this before.

This is how the nr1 package is installed and the first part of the tutorial series I'm working on, it is not listed in package.json file which I think could be contributing to the problem...:

https://developer.newrelic.com/build-apps/ab-test/install-nr1/

I was able to import snippets for use with coc-snippets from the new relic vs code plugin, could that be used to remove the type declarations error?

https://github.com/newrelic/nr1-vscode-extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant