1.8.3 update broke my app (1.8.3-split-jquery-from-blaze broken?)

I just tried updating to 1.8.3 and then the client web app won’t load because it can’t find jquery.

dombackend.js:

var DOMBackend = {};
Blaze._DOMBackend = DOMBackend;

var $jq = (typeof jQuery !== ‘undefined’ ? jQuery :
(typeof Package !== ‘undefined’ ?
Package.jquery && Package.jquery.jQuery : null));
if (! $jq)
throw new Error(“jQuery not found”);

I noticed there was a new 1.8.3-split-jquery-from-blaze entry in the .finished-upgraders file so I tried adding jquery back, both as an npm package and through meteor add jquery but I still get that startup crash (and I don’t even use Blaze so maybe I should get rid of it somehow except I don’t know how since it isn’t listed in packages).

What to do?

added an issue for it:

Check out the changelog:

You need to install jQuery from npm

meteor npm install jquery --save

Should resolve the issue (if I remember correctly you should be able to remove the Meteor version of jQuery now) . If not then there is probably another issue involved.

Nope that did not work:

meteor update
meteor yarn add jquery
yarn debug

It seems that jquery is not included in the .meteor/local/build/programs/web.browser/app/app.js, I assume it’s stripped out since it isn’t explicitly referenced (I don’t know much about the meteor build process tbh).

Here’s the contents of my .meteor/versions file:

accounts-base@1.4.5
accounts-password@1.5.2
adornis:typescript@0.9.14
adornis:typescript-compiler@0.12.14
aldeed:collection2@3.0.4
allow-deny@1.1.0
autoupdate@1.6.0
babel-compiler@7.4.2
babel-runtime@1.4.0
barbatus:typescript-runtime@1.1.0
base64@1.0.12
binary-heap@1.0.11
blaze@2.3.4
blaze-tools@1.0.10
boilerplate-generator@1.6.0
caching-compiler@1.2.1
caching-html-compiler@1.1.3
callback-hook@1.2.0
check@1.3.1
ddp@1.4.0
ddp-client@2.3.3
ddp-common@1.4.0
ddp-rate-limiter@1.0.7
ddp-server@2.3.0
deps@1.0.12
diff-sequence@1.1.1
dynamic-import@0.5.1
ecmascript@0.13.2
ecmascript-runtime@0.7.0
ecmascript-runtime-client@0.9.0
ecmascript-runtime-server@0.8.0
ejson@1.1.1
email@1.2.3
es5-shim@4.8.0
fetch@0.1.1
fourseven:scss@4.12.0
geojson-utils@1.0.10
hot-code-push@1.0.4
html-tools@1.0.11
htmljs@1.0.11
http@1.4.2
id-map@1.1.0
inter-process-messaging@0.1.0
kadira:flow-router@2.12.1
launch-screen@1.1.1
livedata@1.0.18
lmieulet:meteor-coverage@1.1.4
lmieulet:meteor-legacy-coverage@0.1.0
localstorage@1.2.0
logging@1.1.20
meteor@1.9.3
meteor-base@1.4.0
meteorhacks:picker@1.0.3
meteortesting:browser-tests@1.0.0
meteortesting:mocha@1.1.3
meteortesting:mocha-core@6.2.2
minifier-css@1.4.3
minifier-js@2.5.1
minimongo@1.4.5
mobile-experience@1.0.5
mobile-status-bar@1.0.14
modern-browsers@0.1.4
modules@0.14.0
modules-runtime@0.11.0
mongo@1.7.0
mongo-decimal@0.1.1
mongo-dev-server@1.1.0
mongo-id@1.0.7
npm-bcrypt@0.9.3
npm-mongo@3.2.0
observe-sequence@1.0.16
ordered-dict@1.1.0
percolate:migrations@0.9.8
percolate:synced-cron@1.3.2
promise@0.11.2
raix:eventemitter@0.1.3
random@1.1.0
rate-limit@1.0.9
react-meteor-data@2.0.1
reactive-dict@1.3.0
reactive-var@1.0.11
reload@1.3.0
retry@1.1.0
routepolicy@1.1.0
service-configuration@1.0.11
sha@1.0.9
shell-server@0.4.0
socket-stream-client@0.2.2
spacebars@1.0.15
spacebars-compiler@1.1.3
srp@1.0.12
standard-minifier-css@1.5.4
standard-minifier-js@2.5.2
templating@1.3.2
templating-compiler@1.3.3
templating-runtime@1.3.2
templating-tools@1.1.2
tmeasday:check-npm-versions@0.3.2
tracker@1.2.0
underscore@1.0.10
url@1.2.0
webapp@1.7.5
webapp-hashing@1.0.9
xolvio:cleaner@0.3.3

Aha you need to both add the meteor jquery package and the npm jquery package (through npm or yarn).
After I did that (meteor add jquery), things now work again.