Base Lightning Web Components Trailhead Troubleshooting Lightning Web Components
In this module, you use Visual Studio Code (VS Code) to edit code. Open VS Code and clone this GitHub repo.
- In VS Code, open the Command Palette by pressing Ctrl+Shift+P (Windows) or Cmd+Shift+P (macOS).
- Enter
git
. - Select Git: Clone.
- Enter
https://github.com/developerforce/troubleshoot-lwc.git
and press Enter. - Select Desktop then click Select Repository Location.
- Open the Command Palette
- Enter
sfdx
. - Select SFDX: Create Project.
- Select Standard.
- Enter
troubleshoot-lwc
as the project name. - Press Enter.
- Select Desktop for folder to store the project.
- Click Create Project.
- Click Overwrite.
- Open the Command Palette
- Enter
sfdx
. - Select SFDX: Authorize an Org.
- Press Enter to accept the Project Default login URL option.
- Press Enter to accept the default alias. This opens the Salesforce login in a separate browser window.
- Log in using your Trailhead Playground credentials. If prompted to allow access, click Allow.
- Right-click the default folder under force-app/main.
- Click SFDX: Deploy Source to Org.
- Click View, then select Terminal. This opens a terminal window inside Visual Studio Code. The terminal defaults to the top-level directory of the project.
- Run this command in a terminal to assign the Solutions Full Access permission set to the default user.
sfdx force:user:permset:assign -n Solutions_Full_Access
- In your Playground, In App Launcher, search for
sol
. - Select Solutions.