# Regression on "Could not find module ‘handlebars’ imported from ‘discourse-common/lib/raw-handlebars’"?

**URL:** https://meta.discourse.org/t/regression-on-could-not-find-module-handlebars-imported-from-discourse-common-lib-raw-handlebars/225572
**Category:** Support
**Created:** [April 28, 2022, 3:32pm UTC](https://meta.discourse.org/t/regression-on-could-not-find-module-handlebars-imported-from-discourse-common-lib-raw-handlebars/225572 "2022-04-28T15:32:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![trobiyo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trobiyo/32/311872_2.png) [@trobiyo](https://meta.discourse.org/u/trobiyo)
#### Post date: [April 28, 2022, 3:32pm UTC](https://meta.discourse.org/t/regression-on-could-not-find-module-handlebars-imported-from-discourse-common-lib-raw-handlebars/225572/1 "2022-04-28T15:32:11Z")

</div>

> version: v2.9.0.beta4  
> commit: b266a36967533105215e6848e475c69cb9e36e3e  
> EMBER\_CLI\_PROD\_ASSETS not set in web.only (also tried with EMBER\_CLI\_PROD\_ASSETS: 1)

Hi Team,

While playing a bit with the latest version, I came across this issue that was mentioned in [Could not find module ‘handlebars’ imported from ‘discourse-common/lib/raw-handlebars’ - support - Discourse Meta](https://meta.discourse.org/t/could-not-find-module-handlebars-imported-from-discourse-common-lib-raw-handlebars/216999) and in [Broken instance after updating to 2.9.0.beta2 - support - Discourse Meta](https://meta.discourse.org/t/broken-instance-after-updating-to-2-9-0-beta2/218121). See console below:

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/0/1/0017f1ee8925deadd3640e14be62091d599e5203.png)

Is there any known regression from `v2.9.0.beta2` to `v2.9.0.beta4` on this sense? If not, I’m wondering whether there is a way to make some checks to make some validations?

Cheers,  
Ismael

---

<div class="post-metadata">

### Author: ![trobiyo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trobiyo/32/311872_2.png) [@trobiyo](https://meta.discourse.org/u/trobiyo)
#### Post date: [April 29, 2022, 7:00am UTC](https://meta.discourse.org/t/regression-on-could-not-find-module-handlebars-imported-from-discourse-common-lib-raw-handlebars/225572/2 "2022-04-29T07:00:40Z")

</div>

I replied to myself. Apparently, the `dist/` folder generated when compiling assets (i.e., `/var/www/discourse/app/assets/javascripts/discourse/dist`) is now used in recent versions (while it was not the case in previous versions for some reason)

Cheers,  
Ismael

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 2, 2022, 8:18am UTC](https://meta.discourse.org/t/regression-on-could-not-find-module-handlebars-imported-from-discourse-common-lib-raw-handlebars/225572/3 "2022-05-02T08:18:26Z")

</div>

I am assuming here you have a non-default / docker setup right?

If so, highly recommend you track very closely the changes on [discourse\_docker](https://github.com/discourse/discourse_docker) repo. A lot has changed to enable ember cli.

---

<div class="post-metadata">

### Author: ![trobiyo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trobiyo/32/311872_2.png) [@trobiyo](https://meta.discourse.org/u/trobiyo)
#### Post date: [May 2, 2022, 9:09am UTC](https://meta.discourse.org/t/regression-on-could-not-find-module-handlebars-imported-from-discourse-common-lib-raw-handlebars/225572/4 "2022-05-02T09:09:47Z")

</div>

Indeed, using a non-default setup and keep tracking on both `discourse_docker` and `discourse` itself, challenging 😝

Many thanks for the hint though.  
Ismael
