graphiql: [lsp-server] 🐞 Error: Cannot find module 'astrojs-compiler-sync'
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Server crash with error:
Error: Cannot find module 'astrojs-compiler-sync'
Expected Behavior
Server starts without error
Steps To Reproduce
Simply install the latest v0.9.0 of “GraphQL: Language Feature Support” vscode extension.
Environment
- LSP Server Version: v0.9.0
- OS: Archlinux
- LSP Client: “GraphQL: Syntax Highlighting” vscode extension v1.3.0
Anything else?
Rollback on v0.8.25 => no error
About this issue
- Original URL
- State: open
- Created 5 months ago
- Reactions: 4
- Comments: 28 (12 by maintainers)
I also have the same issue, but currently I can work around it by running
npm installin the extension’s folder:I just add a 👍🏼 on the mentioned issue 😘
fantastic to hear, thanks for helping!
Solved in #3547 🥳
if you’re still experiencing this bug in the latest release of the vscode extension or the CLI, let’s do a poll - please react to this comment with:
https://github.com/graphql/graphiql/commit/98af53071bb27afc0afc82d66f539c1ac08315b3#diff-282a02f8ecaf263e63ceecdc0702ec641f159a3b9069ad12769816236f0f602e
I believe the “external” params is preventing astro from being installed.
Confirmed this workaround to works from my side too. I use
npm i --omit=dev, trying to save a bit space 😉 @acao perhaps it gives you some insights to fix this issue? 🤞🏼Extra info: I’m using Code OSS, again dunno if it may have any impact.