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

Completion not working properly with pnpm #254

Closed
itmecho opened this issue Aug 25, 2021 · 3 comments
Closed

Completion not working properly with pnpm #254

itmecho opened this issue Aug 25, 2021 · 3 comments

Comments

@itmecho
Copy link

itmecho commented Aug 25, 2021

I'm using pnpm along with next and mantine. For some reason, the autocompletion in both neovim and code doesn't work for the mantine types.

You can replicate this by cloning https://github.com/mantinedev/mantine-next-template and running pnpm install. Then open the project in code and try adding a const somewhere valid like const x = <Center. This should trigger the autocompletion for the Center component from mantine but I get nothing.

If I do rm -Rf node_modules && npm install, then do the same as above, it works. I'm guessing it's something to do with the symlinking that pnpm does?

Discussion on the mantine repo: mantinedev/mantine#224

@rchl
Copy link
Member

rchl commented Aug 25, 2021

VSCode doesn't use this server so if you also have issues with it, it's possibly a deeper "issue" in tserver (typescript) itself.

@itmecho
Copy link
Author

itmecho commented Aug 25, 2021

Thanks @rchl! I've opened a discussion on the pnpm repo to see if anyone there can help.

Everything compiles fine and once I've manually imported a component, I don't get any errors.

@rchl
Copy link
Member

rchl commented Nov 14, 2021

Any updates on the investigation?

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

2 participants