Title: window.userSettings is undefined
Last modified: September 12, 2018

---

# window.userSettings is undefined

 *  Resolved [Tim](https://wordpress.org/support/users/timwakeling-1/)
 * (@timwakeling-1)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/window-usersettings-is-undefined/)
 * Hi
 * I noticed with interest that you solved this problem with the “window.userSettings
   is undefined” in the Javascript console.
 * I’m currently tearing my hair out trying to work out how to solve this in my 
   own plugin. Can you give me a clue what you had to do to fix it?
 * I hope so. Thanks so much in advance!
 * Tim

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

 *  Plugin Author [atomicblocks](https://wordpress.org/support/users/atomicblocks/)
 * (@atomicblocks)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/window-usersettings-is-undefined/#post-10682087)
 * Hi there,
 * In our case, I believe it had to do with [this line](https://github.com/ArrayHQ/atomic-blocks/commit/a06e00c12ae34d89c25382883e0a8666e5b99f2e)
   in one of the wp_enqueue_script calls. Hopefully that’s helpful!
 *  Thread Starter [Tim](https://wordpress.org/support/users/timwakeling-1/)
 * (@timwakeling-1)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/window-usersettings-is-undefined/#post-10687796)
 * Amazing — thank you so much! So wp-blocks is no longer needed as a dependency
   I guess, and in fact including it now breaks everything.
 * Do you happen to know whether the rest of my line is still needed, with the wp-
   element, wp-components and wp-i18n dependencies? Don’t worry if you don’t; I 
   realise Gutenberg docs are still a bit all over the place. But I thought I’d 
   ask.
 * $deps = array( ‘wp-element’, ‘wp-components’, ‘wp-i18n’ )
 * Tim
 *  Plugin Author [atomicblocks](https://wordpress.org/support/users/atomicblocks/)
 * (@atomicblocks)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/window-usersettings-is-undefined/#post-10689083)
 * Unfortunately, I can’t find any info on that yet. I agree, the docs are a little
   crazy right now so it’s hard to know what is valid. I’m still using wp-element
   and wp-i18n for now, until the docs are updated or it breaks something. 😉
 *  Thread Starter [Tim](https://wordpress.org/support/users/timwakeling-1/)
 * (@timwakeling-1)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/window-usersettings-is-undefined/#post-10689349)
 * Thanks — that is really helpful. 🙂

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

The topic ‘window.userSettings is undefined’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/atomic-blocks_ded9f7.svg)
 * [Atomic Blocks - Gutenberg Blocks Collection](https://wordpress.org/plugins/atomic-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/atomic-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/atomic-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/atomic-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/atomic-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/atomic-blocks/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Tim](https://wordpress.org/support/users/timwakeling-1/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/window-usersettings-is-undefined/#post-10689349)
 * Status: resolved