Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot call method 'registerHelper' of undefined #221

Open
dietherw opened this issue Dec 22, 2014 · 1 comment
Open

Cannot call method 'registerHelper' of undefined #221

dietherw opened this issue Dec 22, 2014 · 1 comment

Comments

@dietherw
Copy link

After upgrading from version 0.4.0 to 0.11.2 I get the following error when building with require:

Running "requirejs:dist" (requirejs) task
TypeError: Cannot call method 'registerHelper' of undefined
In module tree:
main
  core/core
    hbs

{ [Error: TypeError: Cannot call method 'registerHelper' of undefined
In module tree:
main
  core/core
    hbs

This is in my require paths:

    handlebars: '../bower_components/require-handlebars-plugin/hbs/handlebars',
    hbs: '../bower_components/require-handlebars-plugin/hbs',

My map config:

 map: {
    '*': {
        'hbs/underscore': 'underscore',
        'hbs/handlebars': 'handlebars',
        'Handlebars': 'handlebars'
    }
},

I already played with different paths, maps, but I'm always getting errors.
Anybody has any idea how I should configure this with the latest version?

@flamedmg
Copy link

I'm having same issue right now. I was able to fix it by removing the following line:

handlebars: '../bower_components/require-handlebars-plugin/hbs/handlebars',

Now build goes fine, but i have trouble with helper registgratoin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants