-
-
Notifications
You must be signed in to change notification settings - Fork 459
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
Prettier- TypeError: Cannot read properties of undefined (reading 'uid') #3020
Comments
+1 |
This happened to me this morning after I upgraded VS Code to |
This also happended to me today, my vs code version is 1.79.0 |
Same here |
Me also happened on vscode 1.79.0. |
+1 |
workaround suggested in #3019 (comment) Quick fix, add to project settings in .vscode/settings.json
|
same problem |
The problem started for me after I went from 1.78.2 to 1.79.0. |
Same here |
+1 |
I just attempted to report the issue and found this one. +1 |
+1 also happens when running vscode in wsl |
+1 And my vs code version is 1.79.0 |
same problem here!! |
I've the same issue with vscode 1.79.0 |
Same problem directly after upgrade VS Code. The fix suggested above by @sumanssaurabh fixed it straight away, no reload/restart required...thanks very much for that! |
+1 |
Solved with @sumanssaurabh fix, thanks man ❤️ |
+1 that it started happening when I upgraded my VSCode, but @sumanssaurabh 's fix worked perfectly for me too. |
+1 here.... I was going crazy thinking I'd somehow broken my vscode installation. |
+1 first time trying the prettier extension and this happened :( |
Here is a small quickfix.
|
Solved with your fix, man!! Tksss |
@sumanssaurabh it works ! thanks man. |
This solved here. Thanks! |
thank you so much, fixed it! |
Why is this closed, what is the fix? |
it literally says "fixed by #3030 " |
RIP to the people who didn't find this and still trying to debug right now 💀 |
* fix: prettier bug in recent version prettier/prettier-vscode/issues/3020 * fix: env logic inside project
* feat: configure tailwindcss * refactor: remove not used images * feat: add layout images to assets * feat: update nextjs to latest * refactor: remove not used files * style: change global style based on layout * feat: create default global layout * feat: public not found page * feat: home page * feat: login page * feat: auth 2fa page * feat: default global layout for game private screen * feat: pattern pages game * feat: chat component * feat: sidebar component * feat: add avatar * feat: create user status component * feat: create header * feat: start leaderboard * feat: create user info component * feat: create leaderboard components * feat: add scrollbar tailwind package * feat: create channel card * feat: create friend card * feat: add is friend validator * fix: links to use next link * feat: create list channels component * feat: create list friends component * feat: add change components lists logic * feat: create channel component * feat: global style to fix screen * feat: start open channel component * feat: start adding game canvas * fix: remove random icon to avoid hydratation error * feat: create start canvas with moving ball * feat: add paddle moves * feat: add request api libs * docs: env example * feat: add api logic with axios * feat: add react query with examples querying * game events initial structure implemented * first ball physics prototype * simple gateway socket connection * feat: add config to allow websocket nextjs * fix: prettier bug in recent version prettier/prettier-vscode/issues/3020 * fix: env logic inside project * feat: moving ball from websocket working * feat: create profile public popover * style: game based on layout * feat: add react hook form into channel creation * feat: create chat context * style: add cursor pointer into close action * feat: use context and adjust resizes * feat: create chat bubbles inside opened channel * feat: add user actions into open channel * feat: remove not used test function --------- Co-authored-by: Guilherme Martinelli <[email protected]>
I had this error, on a code that actually used a variable named |
Hello, I am currently experiencing an issue with the Prettier module. It appears to have stopped functioning correctly for me starting from version 9.12.0. The plugin is now prompting me to npm install the module either locally or globally. As a temporary workaround, I have downgraded to version 9.10.4, which has allowed me to continue using the module as usual. However, this is not a long-term solution. I have attempted to follow the solution suggested by @sumanssaurabh, but unfortunately, it did not resolve the issue for me. Could anyone provide some insight or assistance on this matter? Any help would be greatly appreciated. Thank you. |
@Hibrix-net sorry to hear you're having a problem but please don't use closed issues to report new issues. Please report a new issue. |
Hello @Soviut, Thank you for your response. I apologize for any confusion, but I was under the impression that this issue was still open as it doesn't explicitly state that it's closed. Could you kindly clarify why this issue is considered closed? Also, could you please point me to the solution that resolved the original issue? This information will help me understand if my problem is indeed different and warrants a new issue. Thank you for your assistance. |
@Hibrix-net It was closed because the issue was solved in a recent update and the proposed workaround is no longer required. |
The latest version is v9.16.0, right? but I'm still encountering the issue. I'm curious, am I the only one still experiencing this problem? |
I think it's best to do the follow-up in a separate issue as your issue seems a bit different (asking you to do some sort of I also recommend adding logs/screenshots to your issue. |
Hello @Soviut, Thank you for your response. However, I believe there might be a misunderstanding. The issue I'm experiencing is not distinct but rather a continuation of the problem discussed in #3019. If you refer to that thread, you'll notice that the problem described there is identical to mine, including the prompt to install the Prettier module. Many users in this thread are suggesting the solution from #3019, and this issue is also considered a duplicate of that one. Therefore, I believe my issue is not separate but a persistent instance of the original problem. I hope this clarifies the situation. I appreciate your understanding and assistance. |
It's closed in the timeline and says "Closed" at the top of the issue and in the header sticky header. However, for this issue and #3019 all you need to do is fully restart VSCode after it's been updated to the latest version If it still doesn't work and you see a Prettier in the bottom right corner of VSCode is red, then start a new issue, paste your log and any relevant screenshots. |
Hi, Thanks anyway for your patience. |
@Hibrix-net Did you apply the |
Yes, I tried it then removed it but still having the issue with versions above the 9.10.4 + VS Code latest version installed on my Windows 10 machine. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Edited by maintainer
#3020 (comment)
Type: Bug
Prettier running in ssh remote gives error
vscode TypeError: Cannot read properties of undefined (reading 'uid') at Object.statSync (/home/ubuntu/.vscode-server/bin/b380da4ef1ee00e224a15c1d4d9793e27c2b6302/node_modules/graceful-fs/polyfills.js:313:17)
Extension version: 9.13.0
VS Code version: Code 1.79.0 (b380da4ef1ee00e224a15c1d4d9793e27c2b6302, 2023-06-07T14:26:35.552Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Connection to 'ssh-remote+neo' could not be established
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Connection to 'ssh-remote+neo' could not be established
The text was updated successfully, but these errors were encountered: