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

Error running "npm run helper:add" #101

Closed
alexharris opened this issue Jan 20, 2020 · 1 comment
Closed

Error running "npm run helper:add" #101

alexharris opened this issue Jan 20, 2020 · 1 comment

Comments

@alexharris
Copy link
Contributor

Trying to add a helper, following the instructions from the readme. All is well until I run npm run helper:add, and I get the following error:

TypeError: Object.fromEntries is not a function
    at getHelpersFromHelpersJSON (/Users/alexharris/Sites/tiny-helpers/lib/helpers.js:22:17)
    at getHelpers (/Users/alexharris/Sites/tiny-helpers/lib/helpers.js:9:15)
    at /Users/alexharris/Sites/tiny-helpers/scripts/add-helper.js:6:32
    at Object.<anonymous> (/Users/alexharris/Sites/tiny-helpers/scripts/add-helper.js:59:3)
    at Module._compile (internal/modules/cjs/loader.js:721:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
    at Function.Module._load (internal/modules/cjs/loader.js:552:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:774:12)

In the meantime, can I add a helper by just adding JSON directly to helpers.json?

@alexharris
Copy link
Contributor Author

Resolved by upgrading Node!

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