You need to sign in to do that
Don't have an account?
Susan Thomlinson
Challenge Not yet complete... here's what's wrong: The 'campingList' component does not include the correct markup.
I cannot for the life of me, figure out what could be wrong with my campingList component markup for the "Create a Simple Camping List Lightning Component" challenge. This is the markup for campingList.cmp:
<aura:component>
<ul>
<li>Bug Spray</li>
<li>Bear Repellant</li>
<li>Goat Food</li>
</ul>
</aura:component>
Please help me figure out why I am getting the error. Thank you, Susan
<aura:component>
<ul>
<li>Bug Spray</li>
<li>Bear Repellant</li>
<li>Goat Food</li>
</ul>
</aura:component>
Please help me figure out why I am getting the error. Thank you, Susan
Jeff Douglas
Trailhead Developer Advocate
Try replacing "<ul>" with "<ol>.
Jeff Douglas
Trailhead Developer Advocate
Code I am using is
<aura:component>
<STYLE>
H1 {
FONT-SIZE:18pt;
}
</STYLE>
<H1>Camping List</H1>
</aura:component>
And the validation says: "The component is not using the correct font size."
<aura:component>
<h1 class="h1class">Camping List</h1>
</aura:component>
CSS:
.THIS {
}
.THIS.h1class {
font-size: 18pt;
}
The following CSS also does not work
.THIS {
}
.THIS.h1class {
font-size: 24px;
}
Component:
CSS:
The 'campingHeader' Lightning Component does not include the correct markup.
Here are the codes:
Component:
<aura:component > <h1>Camping List</h1> </aura:component>
CSS:
.THIS { font-size:18pt; } h1.THIS{ font-size:18pt; }
I'm also stuck with the "The component is not using the correct font size." for this challenge
campingHeader.cmp campingHeader.css (it is ctrl + shift + 4 so it is linked to the campingHeader.cmp)camping.cmp
I've tried switching ul to ol, and h1 to H1... And I get an error if I do ".h1 .THIS"
It should've been this:
Not a well designed test. Who uses 'pt' these days?
Try this, it worked for me.
Camping.cmp
<aura:component >
<c:campingHeader />
<c:campingList />
</aura:component>
CampingList.cmp
<aura:component >
<ol>
<li>Bug Spray</li>
<li>Bear Repellant</li>
<li>Goat Food</li>
</ol>
</aura:component>
CampingHeader.cmp
<aura:component >
<h1>Camping List</h1>
</aura:component>
camping.css
.THIS {
}
h1.THIS {
font-size: 18pt;
}
Campingapplication.app
<aura:application >
<c:Camping />
</aura:application>
Thanks in advance
campingheader.css:
.THIS {
}
h1.THIS {
font-size: 18pt;
}
CampingHeader.cmp :
<aura:component >
<H1>Camping List</H1>
</aura:component>
Below is my code:
camping.cmp - campingList.cmp - campingHeader.cmp -
campingHeader.css -
I am seeing the below error. Have tried all the solutions provided in above comments. Please help me out.
"The 'campingList' component does not include the correct markup".
Double check the HTML in your campingList component. It should use <li> and not <ol> for the list items.
Jeff Douglas
Trailhead Developer Advocate
Your campingList component must contain an ordered list of camping supplies.
Try this,
<aura:component >
<ol>
<li>Bug Spray</li>
<li>Bear Repellant</li>
<li>Goat Food</li>
</ol>
</aura:component>
Thanks,
Indraja
<ol>
<li>Bug Spray</li>
<li>Bear Repellant</li>
<li>Goad Food</li>
</ol>
</aura:component>
still getting "The 'campingList' component does not include the correct markup."
CampingList.cmp :-
<aura:component >
<ol>
<li> Bug Spray </li>
<li> Bear Repellant </li>
<li> Goat Food </li>
</ol>
</aura:component>
CampingHeader.cmp:-
<aura:component >
<H1> Camping List </H1>
</aura:component>
CampingHeader.css:-
.THIS {
}
h1.THIS
{
font-size: 18px;
}
Camping.cmp:-
<aura:component >
<c:campingHeader/>
<c:campingList/>
</aura:component>
camping.cmp
<aura:component >
<c:campingHeader/>
<c:campingList/>
</aura:component>
campingList.cmp
<aura:component >
<ol>
<li>Bug Spray</li>
<li>Bear Repellant</li>
<li>Goat Food</li>
</ol>
</aura:component>
campingHeader.cmp
<aura:component>
<h1><c:campingList/></h1>
</aura:component>
campingHeader.css
.THIS {
}
p.THIS {
font-size: 18px;
}
One small correction in css file instead of p.THIS , it should h1.THIS right ?
campingHeader.css
.THIS {
}
h1.THIS {
font-size: 18px;
}
I have the same error and there's obviously something seriously wrong with my bundle/code.
campingList.cmp
campingHeader.cmp
campingHeader.css
camping.cmp
It's also obvious that something is wrong in the debug when I create a test app:
As you can see the header has a font-size of 18pt.
I have no clue why and where in my code I should correct this.
Any advice would be appreciated.
with Regards
Filip Poverud
to
--campingList--
<aura:component >
<ol> use
<li>Bug Spray</li>
<li>Bear Repellant</li>
<li>Goat Food</li>
</ol>
</aura:component>
--campingHeader--
<aura:component >
<H1>Camping List </H1>
</aura:component>
--Style - CSS--
h1.THIS {
font-size: 18px; //remember use 'px'
}
Code:
<aura:component >
<c:campingHeader />
<c:campingList />
</aura:component>