After doing a one-click update of an instance to 2.9.0.beta2 I see a blank screen with these errors in the dev console:
I’m using the following plugins:
Multiple users have reported issues with their Discourse instance after updating to version 2.9.0.beta2, resulting in a blank screen and a JavaScript error message: Uncaught Error: Could not find module 'handlebars' imported from 'discourse-common/lib/raw-handlebars'. The issue is not related to specific plugins, as multiple users with different plugin configurations are experiencing the same problem.
IAmGav suggested trying safe mode, but k4rtik reported that safe mode also results in the same error.
@david investigated the issue and later pushed a fix. To resolve the issue, users can run another update by either rebuilding the app with the command ./launcher rebuild app or by visiting the update UI at https://your-site.com/admin/upgrade. CRCinAU and Alex_Harrington have confirmed that the update resolves the issue.
After doing a one-click update of an instance to 2.9.0.beta2 I see a blank screen with these errors in the dev console:
I’m using the following plugins:
these are official plug-ins and should not give issues.
Have you tried viewing your site in safe mode
Same issue: white screen + JS error.
Have the same problem…
same here, same here
Same here
Hope a fix is coming very soon!
Same here:
loader.js:247 Uncaught Error: Could not find module `handlebars` imported from `discourse-common/lib/raw-handlebars`
at loader.js:247:1
at c (loader.js:258:1)
at s.findDeps (loader.js:168:1)
at c (loader.js:262:1)
at s.findDeps (loader.js:168:1)
at c (loader.js:262:1)
at requireModule (loader.js:24:1)
at discourse-boot.js:12:1
at Array.forEach (<anonymous>)
at discourse-boot.js:10:1
Same issue here as well with the same error in the js console.
Uncaught Error: Could not find module `handlebars` imported from `discourse-common/lib/raw-handlebars`
at loader.js:247:1
at c (loader.js:258:1)
at s.findDeps (loader.js:168:1)
at c (loader.js:262:1)
at s.findDeps (loader.js:168:1)
at c (loader.js:262:1)
at requireModule (loader.js:24:1)
at discourse-boot.js:12:1
at Array.forEach (<anonymous>)
at discourse-boot.js:10:1
We’re using the following plugins:
https://github.com/discourse/discourse-akismet.git
https://github.com/discourse/discourse-solved.git
I get the following warnings during the build
Bundle complete! 127 Gemfile dependencies, 176 gems now installed.
Gems in the groups 'test' and 'development' were not installed.
Bundled gems are installed into `./vendor/bundle`
I, [2022-02-14T13:34:51.839391 #1] INFO -- : > cd /var/www/discourse && [ ! -d 'node_modules' ] || su discourse -c 'yarn install --production && yarn cache clean'
warning Resolution field "lodash@4.17.21" is incompatible with requested version "lodash@4.17.15"
warning " > @mixer/parallel-prettier@2.0.1" has unmet peer dependency "prettier@^2.0.0".
I have tried the safe-mode, I am also getting the handlebars missing error. Only white screen on the app, along with a load time in ms on the top left.
Uncaught Error: Could not find module `handlebars` imported from `discourse-common/lib/raw-handlebars`
at loader.js:247:1
at c (loader.js:258:1)
at s.findDeps (loader.js:168:1)
at c (loader.js:262:1)
at s.findDeps (loader.js:168:1)
at c (loader.js:262:1)
at requireModule (loader.js:24:1)
at discourse-boot.js:12:1
at Array.forEach (<anonymous>)
at discourse-boot.js:10:1
I’m taking a look into this now. Is anyone able to share a link to a site with this issue? (via PM is fine, if you prefer not to make it public)
Not sure I have permissions to PM you - as I just joined…
I’ve got some examples now, thanks all!
I just pushed a fix: FIX: Update application_helper logic now that Ember CLI is default (#… · discourse/discourse@f078d1a · GitHub
Please run another update - it should get things working again. So sorry for the disruption!
@Anton_Akhmerov @RobertBrockie @pinkd @simevo @Canapin @CRCinAU @Alex_Harrington @k4rtik
Is this sufficient to run the required update?
# cd /var/discourse/
# ./launcher rebuild app
Yes, or you can type a URL like https://your-site.com/admin/upgrade into your address bar - the update UI should still be functional even though the main application is broken.
Can confirm - updated and things are working back as normal. Thanks @david
Yes that has worked for me too. Thanks @david