Lightning Web Components Specialist – Trouble getting the boatMap Component?

During the completion (as if writing I’m on step 8) of the new ​Lightning Web Components Specialist Trailhead superbadge I had some troubles with step 6 as I couldn’t get access to the source of the boatMap component.

It’s installed from an unlocked package, and being a LWC it’s not viewable in the Salesforce developer console. I was also unable to see it in the Org Browser VS Code plugin… but then I went back to my old friend the CLI.

Using this command I was able to bring the source down into my repo.

sfdx force:source:retrieve -m LightningComponentBundle:boatMap

 

I hope this saves folk some time as they work through this badge.

12 Replies to “Lightning Web Components Specialist – Trouble getting the boatMap Component?”

    1. Hey Alex,

      I don’t think posting my code for the step is really going to be the right way to help you, and since the superbadge counts towards a certification it’ll also be de-valuing the work others have put in and I think is also against Salesforce’s terms.

      I would be happy to assist in pointing you in the right direction though. I suggest you post on the Trailblazer Success community with what error you’re getting and what sort of thing you’ve already tried. Feel free to post a link to the forum post here and I’ll be happy to take a look.

      Todd

  1. @todd,

    I’m getting this error

    Challenge Not yet complete… here’s what’s wrong:
    We can’t find the required imports in the component boatMap JavaScript file. Make sure the component was customized according to the requirements, including the imports from Lightning Web Components.
    Please guide me on this

  2. HI Alex ,
    i am stuck in Step 8 , i getting error in BoatSearchResults.js file , May you please help me if you are done with step 8.
    Any help is highly appreciated

    EDITED BY TODD – Code removed

    1. Hey Sohan,

      I’ve edited your comment to remove the code, I don’t think folk should be really sharing so much code relating to this superbadge, due to it’s involvemnt with the JS1 cert. I understand that folk want help, but asking for guidance and giving pointers is drastically different from posting swathes of code.

      As well as devaluing the badge and cert this also has the potential to cause misinformation, as the badges evolve over time.

      Could you please post (without all the code) on the Trailblazer Answers, and reply here with a link to the post, and I’ll be happy to take a look.

  3. Thanks Todd,
    that last part of your command ‘:boatMap’ is saved my a lots of time.
    i was trying ‘sfdx force:source:retrieve -m LightningComponentBundle’ and its retrieving all the other components except the boatMap component.
    Thanks,

  4. hi todd, if i use your previous command to retrive boatmap component, im getting ans like “No results found”. Please help me with that

    1. Oh that’s odd. Perhaps best to post/search on the Trailblazer Answers forum as the challenge/setup might have changed since I took the badge.

  5. Hi Todd, thanks for the help. I then modified my package.xml in VSCode with specific components instead of * and could retrieve all the installed component.

    Question: I am new to this; is there any time limit to complete the Specialist badge (LWC one)? Actually I haven’t completed my online exam till now, thought to give that after I complete the trailhead badge.

    1. I don’t believe so.
      Though badges do get updated and evolve over time, so it’s best to try and get it done in as short an amount of time as possible.

Leave a Reply

Your email address will not be published. Required fields are marked *