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
__Fábio Suzuki____Fábio Suzuki__ 

Get Started with Lightning Web Components - Stuck on scratch org create

Hi folks,

trying to finish the trailmix Get Started with Lightning Web Components by 28/02/2019 and complete the quest to help Per Scholas.

Unfortunately I am not able to create a Scratch Org in two moments that are requested in the trailmix:

-Lightning Web Components Basics - Unit 3
-Set Up Your Lightning Web Components Developer Tools - Unit 2

Facing following error:
User-added image
Dev Hub was properly configured
User-added image
and Dev Hub TP access properly allowed.
User-added image

Has anyone experienced this and can you help me?

Best regards,

FS
Abdul KhatriAbdul Khatri
try to set your DevHub as default and then try creating an scratch org.
sfdx force:config:set defaultdevhubusername=   @brave-otter-receat.com

 
__Fábio Suzuki____Fábio Suzuki__
unfortunately it did not work and the error persists
Raj VakatiRaj Vakati
Can you check below points 
  • Make sure you have create an Salesforce DX enabled Org 
  • From the issue what i am seeing is there might be some VPN or PROXY Issue from your network 
Please refer this link for step by steps 

https://rajvakati.com/2018/12/22/lightning-web-components/ 
__Fábio Suzuki____Fábio Suzuki__
Actually, I've already tried using a TP, DE and a DX (not supported on the trailhead), none of them worked.
I believe it isn't a VPN or Proxy problem because I'ven't configured it in my network and other exercises that I needed to connect, deploy and clone worked normally.
Raj VakatiRaj Vakati
Can you create a new scratch file again and try  , if you haven't tried 
__Fábio Suzuki____Fábio Suzuki__
already tried and did not worked...=(
Abdul KhatriAbdul Khatri
It looks like your DevHub is   @brave-otter-roceat.com. Let's first make it default DevHub by using the following command
sfdx force:auth:web:login -d -a DevHub
Please login with the credentials then confim if "D" appears in front of that Org by running this
sfdx force:org:list
Now try to create a scratch org like this
sfdx force:org:create --definitionfile config/project-scratch-def.json --setalias MyScratchOrg --durationdays 7 -v DevHub

Let me know if this works or not.



 
__Fábio Suzuki____Fábio Suzuki__
Tried but error persists.
It's looks like some reference was missed or some value in the file is incorrect. I have checked several times and they seem correct, also does not seem to be network setup problem.
Trying hard but lost timing to conclude this quest, unfortunately...=(
By the way thanks for all replies...
{tushar-sharma}{tushar-sharma}
You can check the below links for multiple components. https://newstechnologystuff.com/2018/12/16/lightning-web-component-the-new-development-style/  This also has step by step guide to creating your first component and display on UI.