3

Trying to work through the Quick Start: Lightning Web Components trailhead and getting the following error while running command:

force:org:create -f config/project-scratch-def.json --setalias HelloWorldLightningWebComponent --durationdays 30 --setdefaultusername

ERROR: The configured apiVersion 45.0 is not supported for this org. The max apiVersion is 44.0.

I did not set up a new dev hub environment, but rather enabled devhub in my old dev environment. Tried updating sfdx-project.json to include "sourceApiVersion": "44.0". but no luck.

  • The Spring '19 pre-release signup is now live. Updated the link in the answer. – Jayant Das Dec 13 '18 at 17:13
9

UPDATE

Just got an update that the Spring '19 pre-release signup link is now live. You can access it on this link.


You are getting this error because the LWC project expects a version 45.0 (Spring '19 pre-release org), whereas the current DE sandboxes are still on version 44.0 (Winter '19).

You will need to signup for the Spring '19 pre-release DE Org to be used as DevHub for this module. And as of now that's not available, unless you already have a sandbox which has been upgraded to Spring '19.

I was in same situation this morning and found out that the signup for pre-release DE Org is not live yet. Refer to this tweet for response from Salesforce.

  • Yeah, the trailhead kind of fails to mention this, as far as I can tell. – sfdcfox Dec 13 '18 at 16:51
  • @sfdcfox True. I actually was exactly in this situation when went back and realized I need a Spring '19 org for this module. Then while signing up, couldn't do so. – Jayant Das Dec 13 '18 at 16:52
  • Yeah, I was just trying a trailhead this morn. I think LWC is going to change the way we do things, but a bit annoying they announced it without specifying special hoops – sfdcfox Dec 13 '18 at 16:54
  • I could just imagine, there's a lot of excitement around it from this morning, the time it was announced. I think I haven't seen anything like this which is GA without releasing a beta in first place. – Jayant Das Dec 13 '18 at 16:55
  • That's because they've been secretly testing it for a year. I noticed it a few months ago and I wrote it off as some Aura oddity, but I've known about this for a while. Like you'll write a component that uses lightning:button, but if you debug it in the Lightning Debugger, it shows up as a lightning-button, basically a first-class citizen of Lightning, which struck me as odd. – sfdcfox Dec 13 '18 at 16:58

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.