• Resolved Tim

    (@timwakeling-1)


    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

    (@atomicblocks)

    Hi there,

    In our case, I believe it had to do with this line in one of the wp_enqueue_script calls. Hopefully that’s helpful!

    Thread Starter Tim

    (@timwakeling-1)

    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

    (@atomicblocks)

    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

    (@timwakeling-1)

    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.