You need to sign in to do that
Don't have an account?
Juan Victoriano 7
Unable to complete challenge #4 on Lightning Web Components Specialist superbadge
Hello, I'm getting this error:
We can’t find the component boatSearchForm. Make sure the component was created according to the requirements.
Any insight or support would help, thanks!
We can’t find the component boatSearchForm. Make sure the component was created according to the requirements.
// boatSearchForm.js // imports // import getBoatTypes from the BoatDataService => getBoatTypes method'; export default class BoatSearchForm extends LightningElement { selectedBoatTypeId = ''; // Private error = undefined; searchOptions; // Wire a custom Apex method boatTypes({ error, data }) { if (data) { this.searchOptions = data.map(type => { // TODO: complete the logic }); this.searchOptions.unshift({ label: 'All Types', value: '' }); } else if (error) { this.searchOptions = undefined; this.error = error; } } // Fires event that the search option has changed. // passes boatTypeId (value of this.selectedBoatTypeId) in the detail handleSearchOptionChange(event) { // Create the const searchEvent // searchEvent must be the new custom event search searchEvent; this.dispatchEvent(searchEvent); } }
Any insight or support would help, thanks!
Trailhead Help (https://trailhead.salesforce.com/en/help?support=home)can provide assistance for situations where Trailhead does not appear to be functioning correctly. You can reach out to them if this is the case.
Please close the thread by selected as Best Answer so that we can keep our community clean
Thanks,
It is not a question of how to pass the challenge; it is rather a hurdle on the challenge itself. I completed the first three steps. Suddenly, my Org isn't able to identify the web components I created in VS. I am not sure yet if it's an authentication issue to the Org or an issue with the syntax. I read in training this would be a good place to start when running into difficulties.
https://trailhead.salesforce.com/en/help?support=home
Thanks,