Error screen cap, followed by code sample.
Completing LWC Trailhead challenges is incredibly painful when your style guide doesn't match the Challenge's.
// Fires event that the search option has changed.
// passes boatTypeId (value of this.selectedBoatTypeId) in the detail
// eslint-disable-next-line space-before-function-paren
handleSearchOptionChange(event) {
// Create the const searchEvent
// searchEvent must be the new custom event search
this.selectedBoatTypeId = event.detail.value
const searchEvent = new CustomEvent('search', {
detail: { boatTypeId: this.selectedBoatTypeId }
// eslint-disable-next-line semi
});
this.dispatchEvent(searchEvent)
}