Could not find module 'handlebars' imported from 'discourse-common/lib/raw-handlebars'

Hi,

My forum was working just fine until I tried to add two plugins…

Ever since, when I rebuild (which takes 40 minutes by the way!) I receive a blank browser window, and the below console error.

Uncaught Error: Could not find module `handlebars` imported from `discourse-common/lib/raw-handlebars`
    c _vendor-f4425d4b17932067d5c6d206656c04d9.js:22
    c _vendor-f4425d4b17932067d5c6d206656c04d9.js:22
    findDeps _vendor-f4425d4b17932067d5c6d206656c04d9.js:34
    c _vendor-f4425d4b17932067d5c6d206656c04d9.js:22
    findDeps _vendor-f4425d4b17932067d5c6d206656c04d9.js:34
    c _vendor-f4425d4b17932067d5c6d206656c04d9.js:22
    requireModule _vendor-f4425d4b17932067d5c6d206656c04d9.js:16
    <anonymous> _start-discourse-81637605c9aa837e31086f280d3afdaa.js:18
    <anonymous> _start-discourse-81637605c9aa837e31086f280d3afdaa.js:16
    <anonymous> _start-discourse-81637605c9aa837e31086f280d3afdaa.js:7
_vendor-f4425d4b17932067d5c6d206656c04d9.js:22:30
    c _vendor-f4425d4b17932067d5c6d206656c04d9.js:22
    c _vendor-f4425d4b17932067d5c6d206656c04d9.js:22
    findDeps _vendor-f4425d4b17932067d5c6d206656c04d9.js:34
    c _vendor-f4425d4b17932067d5c6d206656c04d9.js:22
    findDeps _vendor-f4425d4b17932067d5c6d206656c04d9.js:34
    c _vendor-f4425d4b17932067d5c6d206656c04d9.js:22
    requireModule _vendor-f4425d4b17932067d5c6d206656c04d9.js:16
    <anonymous> _start-discourse-81637605c9aa837e31086f280d3afdaa.js:18
    forEach self-hosted:208
    <anonymous> _start-discourse-81637605c9aa837e31086f280d3afdaa.js:16
    <anonymous> _start-discourse-81637605c9aa837e31086f280d3afdaa.js:7

Any help would be much appreciated! I only finished building the forum today, and adding these two plugins has broken it again :frowning:

1 Like

This was a bug in Discourse core (which has also been affecting Meta over the last few hours). I’ve just pushed a fix:

If you visit /admin/upgrade (or use launcher rebuild app), then things should be fixed. Let us know if not.

2 Likes

Thanks so much. I rebuilt my app twice but nothing happened, then i tried to visit meta and the same error was occuring, so I figured there was something more widespread at play.

Cheers for the speedy reply. :heart:

1 Like

rebuilding one last time did the trick for me - thanks @david!

2 Likes

Yep all sorted. Thank you!

1 Like

I"m getting this error on a site that’s running:

     <meta name="generator" content="Discourse 2.9.0.beta2 - https://github.com/discourse/discourse version effbd6d3e41844afc2cd3ac08a448fe6cfeef43b">

The site’s been up for 12 days since the last upgrade.

Difficult to work out the problem from that screenshot. I guess you reverted the ember-cli update, since the site is currently loading without issue?

I just tried running bin/ember-cli --proxy "https://community.rstudio.com/", and even then it seems to load without errors :thinking:

1 Like

The upgrade (of some plugin) had been done via docker_manager, so I destroyed and restarted the container to revert to the older version.

So maybe what happened is that upgrade got ember-cli turned on when it hadn’t been in the last rebuild?

I checked and see that EMBER_CLI_PROD_ASSETS: 0 is set in web_only.yml. MIght docker manager have done a rebuild with ember-cli turned on?

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.