# Fixing a "config.handlebars" undefined method error

**URL:** https://meta.discourse.org/t/fixing-a-config-handlebars-undefined-method-error/39964
**Category:** Development
**Created:** [February 22, 2016, 4:59am UTC](https://meta.discourse.org/t/fixing-a-config-handlebars-undefined-method-error/39964 "2016-02-22T04:59:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![zombiezen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zombiezen/32/121947_2.png) [@zombiezen](https://meta.discourse.org/u/zombiezen)
#### Post date: [February 22, 2016, 4:59am UTC](https://meta.discourse.org/t/fixing-a-config-handlebars-undefined-method-error/39964/1 "2016-02-22T04:59:51Z")

</div>

I’m trying to run Discourse 1.4.5 in a dev environment. When I go to run `bin/rake db:create db:migrate`, it crashes with:

```
rake aborted!
NoMethodError: undefined method `handlebars' for #<Rails::Application::Configuration:0x000000032c50a8>
/opt/app/.bundle/ruby/2.1.0/gems/railties-4.1.10/lib/rails/railtie/configuration.rb:95:in `method_missing'
/opt/app/config/application.rb:140:in `<class:Application>'
/opt/app/config/application.rb:19:in `<module:Discourse>'
/opt/app/config/application.rb:18:in `<top (required)>'
/opt/app/.bundle/ruby/2.1.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:247:in `block in require'
/opt/app/.bundle/ruby/2.1.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:232:in `load_dependency'
/opt/app/.bundle/ruby/2.1.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:247:in `require'
/opt/app/Rakefile:5:in `<top (required)>'
/opt/app/.bundle/ruby/2.1.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:241:in `load'
/opt/app/.bundle/ruby/2.1.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:241:in `block in load'
/opt/app/.bundle/ruby/2.1.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:232:in `load_dependency'
/opt/app/.bundle/ruby/2.1.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:241:in `load'
(See full trace by running task with --trace)

```

I’m not a Ruby developer per se, so much of the Gem/bundler specifics are lost on me. Any ideas on how to debug or fix this? I’ve tried explicitly adding a `require` for `ember/handlebars/template` in `config/boot.rb`, but no avail.

---

<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: [February 22, 2016, 5:06am UTC](https://meta.discourse.org/t/fixing-a-config-handlebars-undefined-method-error/39964/2 "2016-02-22T05:06:38Z")

</div>

In general we don’t do dev on old releases, is there a reason you are setting up a dev environment for stable?

Its possible one of the security backports broke the dev mode, try rolling them back to see if that is the case.

---

<div class="post-metadata">

### Author: ![zombiezen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zombiezen/32/121947_2.png) [@zombiezen](https://meta.discourse.org/u/zombiezen)
#### Post date: [February 22, 2016, 3:25pm UTC](https://meta.discourse.org/t/fixing-a-config-handlebars-undefined-method-error/39964/3 "2016-02-22T15:25:18Z")

</div>

I’m trying to package Discourse as a [Sandstorm](https://sandstorm.io/) app, which is why I picked stable.

When you say security backports, do you mean in Discourse or in its dependencies?

**EDIT:** I ran `git checkout v1.4.0` and attempted running again, but still hit the same issue.

---

<div class="post-metadata">

### Author: ![steinhh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steinhh/32/242776_2.png) [@steinhh](https://meta.discourse.org/u/steinhh)
#### Post date: [June 26, 2023, 4:56pm UTC](https://meta.discourse.org/t/fixing-a-config-handlebars-undefined-method-error/39964/4 "2023-06-26T16:56:42Z")

</div>

Hi @zombiezen, did you solve the problem? If so, how?

---

<div class="post-metadata">

### Author: ![zombiezen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zombiezen/32/121947_2.png) [@zombiezen](https://meta.discourse.org/u/zombiezen)
#### Post date: [June 26, 2023, 5:57pm UTC](https://meta.discourse.org/t/fixing-a-config-handlebars-undefined-method-error/39964/5 "2023-06-26T17:57:31Z")

</div>

Never did. I gave up on packaging Discourse.
