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: Cannot read property 'slice' of undefined with version 1.3.2 of yarn #24

Open
Pichardito opened this issue Dec 25, 2017 · 4 comments

Comments

@Pichardito
Copy link

Pichardito commented Dec 25, 2017

yarn -v
1.3.2

bower-away --version
1.1.2

I ran bower-away in my project with bower.json file and this is the error I get:

TypeError: Cannot read property 'slice' of undefined
    at _callee$ (/Users/pichardito/.config/yarn/global/node_modules/bower-away/cli.js:103:27)
    at tryCatch (/Users/pichardito/.config/yarn/global/node_modules/regenerator-runtime/runtime.js:62:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/cpichardo/.config/yarn/global/node_modules/regenerator-runtime/runtime.js:296:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/pichardito/.config/yarn/global/node_modules/regenerator-runtime/runtime.js:114:21)
    at step (/Users/pichardito/.config/yarn/global/node_modules/bower-away/cli.js:253:30)
    at _next (/Users/pichardito/.config/yarn/global/node_modules/bower-away/cli.js:268:9)
    at /Users/pichardito/.config/yarn/global/node_modules/bower-away/cli.js:275:7
    at /Users/pichardito/.config/yarn/global/node_modules/bower-away/cli.js:248:12
    at main (/Users/pichardito/.config/yarn/global/node_modules/bower-away/cli.js:226:17)
    at Object.<anonymous> (/Users/pichardito/.config/yarn/global/node_modules/bower-away/cli.js:348:1)

Please let me know if there's any other information you need for a better understanding of this bug.

@Pichardito
Copy link
Author

Am I missing some useful information to add to this post? Please let me know anyone.

@CalSeebs
Copy link

Same issue here. Any movement on this?

@serhii-samoilenko
Copy link

By looking at the code, I can say it happens because one of your dependencies in bower_components dir doesn't contain _source section in its .bower.json file.
Not sure what to do with this, though.

@lrcarvalho
Copy link

I got the same error:

TypeError: Cannot read property 'slice' of undefined
at _callee$ (/home/rof/.nvm/versions/node/v6.2.2/lib/node_modules/bower-away/cli.js:103:27)
at tryCatch (/home/rof/.nvm/versions/node/v6.2.2/lib/node_modules/bower-away/node_modules/regenerator-runtime/runtime.js:62:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/home/rof/.nvm/versions/node/v6.2.2/lib/node_modules/bower-away/node_modules/regenerator-runtime/runtime.js:296:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/home/rof/.nvm/versions/node/v6.2.2/lib/node_modules/bower-away/node_modules/regenerator-runtime/runtime.js:114:21)
at step (/home/rof/.nvm/versions/node/v6.2.2/lib/node_modules/bower-away/cli.js:253:30)
at _next (/home/rof/.nvm/versions/node/v6.2.2/lib/node_modules/bower-away/cli.js:268:9)
at /home/rof/.nvm/versions/node/v6.2.2/lib/node_modules/bower-away/cli.js:275:7
at new Promise (/home/rof/.nvm/versions/node/v6.2.2/lib/node_modules/bower-away/node_modules/core-js/modules/es6.promise.js:164:7)
at /home/rof/.nvm/versions/node/v6.2.2/lib/node_modules/bower-away/cli.js:248:12
at main (/home/rof/.nvm/versions/node/v6.2.2/lib/node_modules/bower-away/cli.js:226:17)

Any updates?

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

4 participants