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

Patch for error "Uncaught ReferenceError: meteorBabelHelpers is not defined" #43

Open
DanielDornhardt opened this issue Dec 4, 2019 · 0 comments

Comments

@DanielDornhardt
Copy link

DanielDornhardt commented Dec 4, 2019

Hi, I had an issue with running my cordova apps; At launch of the app I had an error related to

Uncaught ReferenceError: meteorBabelHelpers is not defined ->

After some googling I monkey-patched my local version of meteor-flow-router-helpers like this:

(I think I had a local version anyways because of some dependencies I had to upgrade before anyways?)

In the file helpers.coffee:

Lines 58+:

I changed it from this:

if Meteor.isClient
  Template.registerHelper name, func for own name, func of helpers

Ah coffeescript, how clever we could feel with thee.. :)

to this:

if Meteor.isClient
  # This maketh it not work with meteor 1.8.2 so we have to re-write it
  # Template.registerHelper name, func for own name, func of helpers
  for name in Object.keys helpers
    Template.registerHelper name, helpers[name]

-> This made my cordova apps run again & me happy. :)

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

1 participant