I have created the custom lightning component named “TestComponentWithHTML”. But while adding this component to the lightning record page named “Test with HTML Tags”, I’m getting error and component is not added. I created the page using lightning app builder

enter image description here

The code in lightning component is:

<aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global">
Hello World
<p>Hello in para</p>
<lightning:formattedText value ="Hello World in lightning component"/>

Bundle version settings:

enter image description here

Can you guys help please?


  • Share your code. Issue looks like with lightningformattedText – Tushar Sharma May 12 '18 at 8:02
  • I have added the code @TusharSharma – Arun Kumar May 12 '18 at 8:12
  • No complex code. Just I'm starting out with the lightning – Arun Kumar May 12 '18 at 8:14
  • what is the API version you are using? – Santanu Boral May 12 '18 at 8:39
  • I have shared the Bundle version settings. – Arun Kumar May 12 '18 at 8:52

The code you have posted has (the correct) value attribute name but the error message has (an incorrect) values attribute name. Use that correct value attribute name.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.