mantrajs / mantra-cli

Command line interface for building Meteor apps with Mantra
MIT License
135 stars 34 forks source link

Object has no method 'repeat' #89

Closed jadus closed 7 years ago

jadus commented 8 years ago

Hi I'm trying to use mantra-cli but I get a "Object has no method 'repeat'" error when using the generate command. Any idea why ?

sungwoncho commented 8 years ago

Need steps to reproduce, CLI version, node version, OS.

For the time being, I think you can downgrade to 0.3.x to fix the issue.

jadus commented 8 years ago

{ npm: '3.9.5', ares: '1.9.0-DEV', http_parser: '1.0', modules: '11', node: '0.10.35', openssl: '1.0.1j', uv: '0.10.30', v8: '3.14.5.9', zlib: '1.2.8' }

Mantra : 0.4.0-rc.3

MacOS 10.9.5

Thanks !

sungwoncho commented 7 years ago

How can I reproduce it?

sungwoncho commented 7 years ago

Caused because node 0.10.x does not have String.prototype.repeat. Fixed in https://github.com/mantrajs/mantra-cli/commit/09ba433d9f7be6578c5347e8f96702f924714c46.