Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backbone JavaScript Client tutorial doesn't work #199

Open
JanLukasGithub opened this issue Jan 3, 2025 · 0 comments
Open

Backbone JavaScript Client tutorial doesn't work #199

JanLukasGithub opened this issue Jan 3, 2025 · 0 comments

Comments

@JanLukasGithub
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant