Title: amp-worker.js Cannot access &#8216;t&#8217; before initialization
Last modified: August 16, 2023

---

# amp-worker.js Cannot access ‘t’ before initialization

 *  Resolved [egornmore](https://wordpress.org/support/users/egornmore/)
 * (@egornmore)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/amp-worker-js-cannot-access-t-before-initialization/)
 * Hello! I’m getting following error on my AMP website:
 * `Uncaught (in promise) ReferenceError: Cannot access 't' before initialization
   at new (amp-worker.js:101:9)`
 * Deactivation of all plugins (except AMP) and switching the theme to Twenty Twenty-
   Three did not help.
 * WP version 6.3
   AMP version 2.4.2
 * Update: Noticed that error on another 2 AMP websites.
    -  This topic was modified 2 years, 9 months ago by [egornmore](https://wordpress.org/support/users/egornmore/).
    -  This topic was modified 2 years, 9 months ago by [egornmore](https://wordpress.org/support/users/egornmore/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-worker-js-cannot-access-t-before-initialization%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/amp-worker-js-cannot-access-t-before-initialization/#post-16978235)
 * Thanks for reporting. This does appear to be an issue with AMP core. An [issue](https://github.com/ampproject/amphtml/issues/39380)
   has been filed upstream. Please follow that for updates.
 *  Thread Starter [egornmore](https://wordpress.org/support/users/egornmore/)
 * (@egornmore)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/amp-worker-js-cannot-access-t-before-initialization/#post-16979899)
 * [@westonruter](https://wordpress.org/support/users/westonruter/) Thanks for your
   answer! Rolled back to Version 2.4.1 until the bug is fixed.
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/amp-worker-js-cannot-access-t-before-initialization/#post-16980950)
 * [@egornmore](https://wordpress.org/support/users/egornmore/) Actually, rolling
   back the plugin will do nothing as the issue is with the AMP runtime coming from
   the AMP CDN. The issue has been fixed.
 *  Thread Starter [egornmore](https://wordpress.org/support/users/egornmore/)
 * (@egornmore)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/amp-worker-js-cannot-access-t-before-initialization/#post-16981266)
 * [@westonruter](https://wordpress.org/support/users/westonruter/) thank you

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘amp-worker.js Cannot access ‘t’ before initialization’ is closed to new
replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [egornmore](https://wordpress.org/support/users/egornmore/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/amp-worker-js-cannot-access-t-before-initialization/#post-16981266)
 * Status: resolved