TransWikia.com

Issue with step #6 of the Lightning Web Components Specialist superbadge. Is there a specific import order?

Salesforce Asked on October 4, 2021

I’ve seen the recent discussions regarding the superbadge exams on Trailhead, how SFSE is not supposed to provide an answer to the problem itself, since it is an exam after all, but I think it is relevant to ask this here.


So, I’m stuck at the step #6 of the superbadge, the "Customize the component boatMap" part. I’ve customized the file as the requirements on the text, but I keep getting the message:

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.

I’m wondering if this is one of those issues where the order of the statements might mess with the checking tool’s decision. Or, more specifically: does anyone found this step to require a specific order of importing things? How many things were imported? I have five import statements in my code (I won’t say what is being imported, as not to give spoilers about the challenge).

2 Answers

I don't think it is an import issue. I've managed to pass this part after getting some hours of sleep. There are just four required imports for this specific step and JS file. My guess is that maybe extra imports are also considered by the checking tool.

Also, the checking tool seems to be a little too picky about semicolons. Always try to use semicolons for assignments.

Correct answer by Renato Oliveira on October 4, 2021

I also experienced that error.

The provided comment '// this getter must be public' is significant. Check the 'Public Properties' and 'Use Getters and Setters to Modify Data' sections in the LWC dev guide.

Answered by MikeA on October 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP