Title: JavaScript Error in Astra
Last modified: February 23, 2021

---

# JavaScript Error in Astra

 *  [9itish](https://wordpress.org/support/users/9itish/)
 * (@9itish)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-in-astra/)
 * Hi,
 * I keep getting the following error in Astra:
 * Cannot read property `dataset` of null in file frontend.min.js
 * Here is the line from the file which causes this error:
 *     ```
       null != i && (d = i.querySelector("#ast-mobile-header")),
           "" !== d && (r = d.dataset.type),
       ```
   
 * How can I resolve this error?
 * Thanks.
 * I have tried it in Firefox and Chrome on PC. The error only seems to appear on
   the checkout page and nowhere else.
    -  This topic was modified 5 years, 3 months ago by [9itish](https://wordpress.org/support/users/9itish/).

Viewing 1 replies (of 1 total)

 *  [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * (@brainstormteam)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-in-astra/#post-14094566)
 * Hi [@9itish](https://wordpress.org/support/users/9itish/),
 * Is it the same error reported in this [thread](https://wordpress.org/support/topic/uncaught-typeerror-46/)?
 * If everything is going well as expected, then the fix for this issue should be
   included in the next update. However, if the error you got is different, please
   let us know along with the live site URL we can check.
 * Kind regards,
    Herman 🙂

Viewing 1 replies (of 1 total)

The topic ‘JavaScript Error in Astra’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/astra/4.13.3/screenshot.jpg)
 * Astra
 * [Support Threads](https://wordpress.org/support/theme/astra/)
 * [Active Topics](https://wordpress.org/support/theme/astra/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/astra/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/astra/reviews/)

## Tags

 * [checkout page](https://wordpress.org/support/topic-tag/checkout-page/)
 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-in-astra/#post-14094566)
 * Status: not resolved