0

Has anyone faced below error:

Uncaught (in promise) TypeError: Cannot set property 'innerHTML' 
    of null at AuraInstance.message

Screenshot:

screenshot

even I removed the things from component and made doInIt method empty then also I am getting error.

P.S:- When I remove handler tag then this error disappears. quite strange for me.

<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
1

1 Answer 1

0

Got the mistake. I forgot to implement force:hasRecordId in the component, due to that it was causing the error.

1
  • It would be helpful to include in the question the code that caused the error as well as including in this answer the code that fixed it.
    – JaredT
    Mar 5, 2018 at 20:38

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.