function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VICKY_SFDCVICKY_SFDC 

ISSUE IN VISUAL STUDIO

IN VS STDIO getting this error while deploying the code,,,even i tried to authorize the org bt not able to perform that as well " unable to build lightning component source invalid suffix: json. "
AbhinavAbhinav (Salesforce Developers) 
Hi Vicky,

is it same error coming up while Authorising the org?

This error happens if you already have a Lightning Web Component in your instance with the same name that you are trying to create a new one.
reference:
https://salesforce.stackexchange.com/questions/340357/unable-to-build-lightning-component-source-for-markup-chelloworldlightningweb

Thanks!
 
VICKY_SFDCVICKY_SFDC
Hi Abhinav,

Thanks for replying,, in my case its partially start working like now if i write the code and deploy then deployment happening to org, still the ord open command is not working ,,,  As per my understanding there will will be some issues in CLI intergration

Steps i done
1)Disable and uninstall salesforce Extension pack,,,,,then reinstall
2)type command in terminal  sfdx update
3)type this in terminal npm list -g --depth 0
4) cltr+shift+P ----->set default org-->choose your org
5) cltr+shift+P ----->refresh components
6)[OPTIONAL]  type command in terminal  sfdx update
7)Open any compnent do some changes and try to deploy,,
8)If still Deploymenti failed ,,,,,kindly go to your org-->type deployment status in search bar-->deployment status-->In side failed,,click on View details and Google that probles

NOTE: IF ALL ABOVE STEPS DIDN'T WORK THEN RE- INSTALL FROM SCRATCH