[wp-trac] [WordPress Trac] #50564: Update jQuery step two

WordPress Trac noreply at wordpress.org
Fri Oct 9 13:47:38 UTC 2020


#50564: Update jQuery step two
-------------------------------------------+-------------------------
 Reporter:  azaozz                         |       Owner:  (none)
     Type:  task (blessed)                 |      Status:  new
 Priority:  normal                         |   Milestone:  5.6
Component:  External Libraries             |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  early has-patch needs-testing  |     Focuses:  javascript
-------------------------------------------+-------------------------

Comment (by Mista-Flo):

 Replying to [comment:20 azaozz]:
 > @Mista-Flo hmm, cannot reproduce, running from either /build or /src.
 The UI `widget` is now part of `ui/core.js`, perhaps the browser is still
 using an old cached file? Could you try refreshing caches, and if still
 not working go to `/src/wp-includes/js/jquery/ui/core.js?ver=1.12.1` and
 see if there's a `$.widget = function...` about 2/3 down.
 >
 > If that's not there, i.e. the file wasn't "built" properly, try deleting
 `/src/wp-includes/js` and running build again. In some rare cases a file
 may get the wrong permissions, etc.
 Hi @azaozz,

 Thanks for your answer, I tried to rm -rf node_modules folder, npm install
 again, and npm run build, and I still have the same errors. I do not see
 any `$.widget = function...` in the file you mentioned.

 So I try to delete the js folder inside src/wp-includes, and rebuild the
 assets, but it did not add all the needed files again, so I had to copy
 paste the same directory from the build folder to make it work, then with
 the build folder I don't have any console log errors, I just have a lot of
 jquery migrate console.log but no errors. I hope that can help.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50564#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list