polaris icon indicating copy to clipboard operation
polaris copied to clipboard

Activating extension 'Shopify.polaris-for-vscode' failed: Cannot find module 'vscode-languageclient/node'

Open n-for-all opened this issue 1 year ago • 5 comments

Summary

Rinstalling the extension didn't work

how can i resolve this, it is a fresh installation of vscode om macbook Sonoma

Expected behavior

No response

Actual behavior

Wrap animated gifs/videos in a details tag:

Summary of your gif(s) Description of what the gif shows

Steps to reproduce

Link to sandbox 1. 2. 3.

Are you using React components?

None

Polaris version number

0.9.8

Browser

No response

Device

No response

n-for-all avatar Oct 15 '24 10:10 n-for-all

@n-for-all faced the same issue so built this unofficial one https://github.com/WebX47/Polaris-Companion feel free to use it if needed.

WebX47 avatar Dec 01 '24 14:12 WebX47

thankyou

n-for-all avatar Dec 01 '24 18:12 n-for-all

@WebX47 What was the reason for error? I faced the same issue in the extension I'm working on, and I thought it was because all of the dependencies are ignored in the .vscodeignore. But your extension also ignores entire node_modules in .vscodeignore so I wonder how you fixed it.

yangwooseong avatar Dec 02 '24 00:12 yangwooseong

Hey @yangwooseong, I'm using Bundler, so the final build file includes all the dependencies except for "VsCode." That's why I don’t want to add the node_module again since it's already in there. https://github.com/WebX47/Polaris-Companion/blob/main/esbuild.js

Hey @n-for-all, The tool now provides more precise suggestions by prioritizing tokens relevant to your input. For example, if you type "font-size," the suggestions will display font-size tokens first, rather than starting with unrelated keys like --p-font-family. Additionally, the detail window now shows both rem and px values for improved clarity, and the insert text has been updated to include var() for easier usage.

I haven't used the Polaris extension before, so I'm not sure how it used to function. But if you guys have any suggestions or need anything specific, just let me know.

Right now, I'm thinking about how I can integrate this with Tailwind or JSX/TSX. If everything goes well, I’ll likely publish the extension for easier updates.

WebX47 avatar Dec 02 '24 06:12 WebX47

Hi! We noticed there hasn’t been activity on this issue in a while. After 30 days, it will close automatically.

If it’s still relevant, or you have updates, comment and let us know. And don’t worry, you can always re-open later if needed.

github-actions[bot] avatar Jun 01 '25 03:06 github-actions[bot]