lwc superbadge challenge 5 error - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
vineet srivastavavineet srivastava 

lwc superbadge challenge 5 error

Please do let me know where i am going wrong in the below js  code sample.Its giving me an error.
Challenge Not yet complete... here's what's wrong:
We can’t find the correct decorators for the variables in the component boatTile JavaScript file, including boat and selectedBoatId. Make sure the component was created according to the requirements, using the proper case-sensitivity.
Close errors
import { LightningElement,api,track } from 'lwc';
export default class BoatTile extends LightningElement {
    @api boatId;
    @api boat;
        selectBoat(){
            const searchEvent = new CustomEvent('boatselect', { detail: { boatId: this.boat.Id}});
            this.dispatchEvent(searchEvent);
                    
        }
}
Best Answer chosen by Aishwarya (salesforce.com) 
vineet srivastavavineet srivastava
Hi Aishwarya, I was able to resolve the issue. I guess it was some other code . Thanx, Vineet Srivastava

All Answers

Shivam KumarShivam Kumar
Hi there,
Check this link:
https://developer.salesforce.com/forums/?id=9060G0000005kRxQAI

Cheers
vineet srivastavavineet srivastava
@Shivam Kumar...This is aura component I need help  in LWC
AishwaryaAishwarya (salesforce.com) 
Hi there,

I am from the Trailhead Help team. I see you are facing an issue with "LWC Specialist Superbadge Step 5".

Can you please confirm if any of the above responses did help resolve the issue? If yes, can you please mark the appropriate response as "Best Answer”?

Thanks,
Aishwarya
++CreateTrailheadCase
 
vineet srivastavavineet srivastava
Hi Aishwarya, I was able to resolve the issue. I guess it was some other code . Thanx, Vineet Srivastava
This was selected as the best answer