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

TypeError: str.split is not a function when running task with multiple colons #938

Open
mfwonghk opened this issue Sep 19, 2017 · 1 comment

Comments

@mfwonghk
Copy link

version

0.24.3

description

If I run assemble build:compile:scss I get a error. To workaround, I changed the task name to build:compile-scss.

error message

C:\Test\node_modules\expand-args\index.js:147
        return acc.concat(str.split(' '));
                              ^

TypeError: str.split is not a function
    at C:\Test\node_modules\expand-args\index.js:147:31
    at Array.reduce (native)
    at preProcess (C:\Test\node_modules\expand-args\index.js:145:17)
    at expand (C:\Test\node_modules\expand-args\index.js:32:10)
    at expandEach (C:\Test\node_modules\expand-args\index.js:189:22)
    at Function.expand (C:\Test\node_modules\expand-args\index.js:98:24)
    at processArgv (C:\Test\node_modules\base-argv\index.js:69:16)
    at Assemble.<anonymous> (C:\Test\node_modules\base-argv\index.js:36:18)
    at run (C:\Users\User\AppData\Roaming\npm\node_modules\assemble\bin\cli.js:101:18)
    at Object.<anonymous> (C:\Users\User\AppData\Roaming\npm\node_modules\assemble\bin\cli.js:133:1)

assemblefile.js

'use strict';

const assemble = require('assemble');
const app = assemble();

app.task('build:compile:scss', function() {
  // Task...
});

module.exports = app;
@assemblebot
Copy link

@mfwonghk Thanks for the issue! If you're reporting a bug, please be sure to include:

  • The version of assemble you are using.
  • Your assemblefile.js (This can be in a gist)
  • The commandline output. (Screenshot or gist is fine)
  • What you expected to happen instead.

If your issue is related to one of the following, please open an issue there:

  • grunt-assemble Issues with using assemble in grunt or the grunt-assemble library.
  • handlebars-helpers Issues with using handlebars helpers from the handlebars-helpers library.

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