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

Wrote [object Object] when running as an npm task #1

Open
Quirksmode opened this issue Aug 14, 2017 · 0 comments
Open

Wrote [object Object] when running as an npm task #1

Quirksmode opened this issue Aug 14, 2017 · 0 comments

Comments

@Quirksmode
Copy link

Quirksmode commented Aug 14, 2017

If I run the following command directly from the command line it works fine and creates the dest folder correctly

e.g. twig 'src/index.html' --root src/ --output dest/

But if I run it as part of an npm scripts (from the package.json) it tries to create a folder called [object Object] and errors.

e.g. npm run twig-build

Do you know why this is happening as these should both be the same?

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