[wp-trac] [WordPress Trac] #45271: Can't enqueue WordPress 5.0 builtin reactjs
WordPress Trac
noreply at wordpress.org
Sun Nov 4 09:04:51 UTC 2018
#45271: Can't enqueue WordPress 5.0 builtin reactjs
-------------------------------+-------------------------
Reporter: CantoThemes | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0
Component: General | Version: 5.0
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: javascript
-------------------------------+-------------------------
Comment (by CantoThemes):
Hello,
Right now WordPress version is `5.0-beta2-43862` and I have tried your
code is not loading react. I don't know why is not working. I have tried
at another wordpress setup only with your code but not working. I tried to
debug and I found this:
`http://localhost/test/wp5/wp-admin/load-
scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,react,react-
dom,svg-painter,heartbeat,wp-auth-check&ver=5.0-beta2-43862`
There is react in this `load-scripts.php` link. But is not loading inside
of script. I put var_dump in `load-scripts.php` and there is no react
registered here.
{{{#!php
<?php
$wp_scripts = new WP_Scripts();
wp_default_scripts($wp_scripts);
var_dump($wp_scripts);
}}}
Please type `React` and hit enter on your browser console to make sure
react is loaded.
Thanks
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45271#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list