WordPress / Learn

WordPress.org Learn - The canonical source for the code and content behind https://learn.WordPress.org
274 stars 101 forks source link

Learn WordPress Content Feedback - running wp.data.select('core') #1565

Open RockyKev opened 1 year ago

RockyKev commented 1 year ago

Feedback Details

Write a description of your feedback here:

Opportunity to supplement this area here in the course?

Based on the context, I assumed it was to run the command on the option page directly.

You have permission to reuse those images in the course.


Feedback Report Checklist:

iambherulal commented 2 months ago

Hi @bsanevans I have checked this issue i have found few things here

  1. In the tutorial package.json "@wordpress/scripts": "^18.0.1" version is outdated the current version is "@wordpress/scripts": "^28.6.0"
  2. We need to install one more package to work with wp.data whis is "@wordpress/core-data" after installing this package i'm able to get the list of the pages as mentioned in the lession.

This is my environment ❯ node -v v20.11.1 ❯ npm -v 10.2.4

Image Image Image

jonathanbossenger commented 3 weeks ago

Feedback Validation Checklist:

jonathanbossenger commented 3 weeks ago

@WordPress/learn-editors please see the validation validation note in the comment above.