Skip to content

Backbone JavaScript Client tutorial doesn't work #199

Open
@JanLukasGithub

Description

@JanLukasGithub

Trying to follow this tutorial on a localhost WordPress environment created with wp-env, I found that the main "collections" and "models" parts aren't working at all (in both Firefox and Chrome).

Running wp.api.loadPromise.done(() => { wp.api.collections.Posts(); }); in the console, I get the output Uncaught TypeError: this.preinitialize is undefined. Please update the tutorial (or fix the bug if it is one) to include how to fix this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions