How to fix $.url is not a function & Puppeteer not installing #7636
We are using .net Core / jQuery 7.1 with the updated bundles.json & gulp file from another thread.
On our Tenant page we are now getting this error:
Doing a quick google it shows that $.url is not a part of core jquery.
Other bundles include jquery, such as app-layout:
However the tenant screens don't have any jquery references.
Should jquery be picked up from elsewhere on these screens or has something got missed out that should be included?
I had a google around and found other people (not Zero related) having issues with puppeteer downloading chromium and it looks like there is a command line setting you can do to tell it not to attempt it.
While there might be better ways to apply it (I know nothing about node) this has worked for me now:
npm config set puppeteer_skip_chromium_download true -g npm run build
Which allowed it to build as expected and with no JS errors. This wasn't spotted before as npm run create-bundles outputs into VS and it got lost in the mass of text from files being generated. It was when doing the npm run build that a big error became noticeable.
The tenant screen now works again, as it had previously until about a week ago so quite why it had issues I have no idea but just in case anyone else gets similar on their development environments they can try the above (also renamed the subject to better help those searching the archives).