我有以下代码
wp.data.select( 'core' ).getEntityRecords( 'taxonomy', 'category' );
我收到此错误
Uncaught TypeError: Cannot read property 'getEntityRecords' of null
at Module../src/index.js (index.js:6)
at __webpack_require__ (bootstrap:79)
at checkDeferredModules (bootstrap:45)
at bootstrap:152
at bootstrap:152
如果我安装另一个与此插件无关的插件,我的代码就可以工作。所以我认为我可能会忘记包含一些东西。