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

yeoman init error message #575

Closed
zendy opened this issue Oct 3, 2012 · 6 comments
Closed

yeoman init error message #575

zendy opened this issue Oct 3, 2012 · 6 comments
Assignees
Labels
Milestone

Comments

@zendy
Copy link

zendy commented Oct 3, 2012

I got this message <FATAL> Cannot call method 'replace' of undefined </FATAL> while doing yeoman init. I'll paste in my configuration while doing init, and the stack trace it generates.

Please answer the following:
[?] Would you like to include Twitter Bootstrap for Compass? (Y/n) y
[?] Would you like to include the Twitter Bootstrap plugins? (Y/n) n
[?] Would you like to include RequireJS (for AMD support)? (Y/n) n
[?] Would you like to support writing ECMAScript 6 modules? (Y/n) 
[?] Do you need to make any changes to the above before continuing? (y/N) 

   create    Gruntfile.js
   create    package.json
   create    .gitignore
   create    .gitattributes
   create    .jshintrc
   create    .editorconfig
   create    app/favicon.ico
   create    app/images/glyphicons-halflings.png
   create    app/images/glyphicons-halflings-white.png
   create    app/.htaccess
   create    app/404.html
   create    app/robots.txt
   create    app/scripts/vendor/jquery.min.js
   create    app/scripts/vendor/modernizr.min.js
   create    app/styles/main.scss
   create    app/styles/_compass_twitter_bootstrap.scss
   create    app/styles/_compass_twitter_bootstrap_awesome.scss
   create    app/styles/_compass_twitter_bootstrap_responsive.scss
   create    app/styles/compass_twitter_bootstrap/_accordion.scss
   create    app/styles/compass_twitter_bootstrap/_alerts.scss
   create    app/styles/compass_twitter_bootstrap/_breadcrumbs.scss
   create    app/styles/compass_twitter_bootstrap/_button-groups.scss
   create    app/styles/compass_twitter_bootstrap/_buttons.scss
   create    app/styles/compass_twitter_bootstrap/_carousel.scss
   create    app/styles/compass_twitter_bootstrap/_close.scss
   create    app/styles/compass_twitter_bootstrap/_code.scss
   create    app/styles/compass_twitter_bootstrap/_component-animations.scss
   create    app/styles/compass_twitter_bootstrap/_dropdowns.scss
   create    app/styles/compass_twitter_bootstrap/_font-awesome.scss
   create    app/styles/compass_twitter_bootstrap/_forms.scss
   create    app/styles/compass_twitter_bootstrap/_grid.scss
   create    app/styles/compass_twitter_bootstrap/_hero-unit.scss
   create    app/styles/compass_twitter_bootstrap/_labels-badges.scss
   create    app/styles/compass_twitter_bootstrap/_layouts.scss
   create    app/styles/compass_twitter_bootstrap/_mixins.scss
   create    app/styles/compass_twitter_bootstrap/_modals.scss
   create    app/styles/compass_twitter_bootstrap/_navbar.scss
   create    app/styles/compass_twitter_bootstrap/_navs.scss
   create    app/styles/compass_twitter_bootstrap/_pager.scss
   create    app/styles/compass_twitter_bootstrap/_pagination.scss
   create    app/styles/compass_twitter_bootstrap/_popovers.scss
   create    app/styles/compass_twitter_bootstrap/_progress-bars.scss
   create    app/styles/compass_twitter_bootstrap/_reset.scss
   create    app/styles/compass_twitter_bootstrap/_responsive-1200px-min.scss
   create    app/styles/compass_twitter_bootstrap/_responsive-767px-max.scss
   create    app/styles/compass_twitter_bootstrap/_responsive-768px-979px.scss
   create    app/styles/compass_twitter_bootstrap/_responsive-navbar.scss
   create    app/styles/compass_twitter_bootstrap/_responsive-utilities.scss
   create    app/styles/compass_twitter_bootstrap/_responsive.scss
   create    app/styles/compass_twitter_bootstrap/_scaffolding.scss
   create    app/styles/compass_twitter_bootstrap/_sprites.scss
   create    app/styles/compass_twitter_bootstrap/_tables.scss
   create    app/styles/compass_twitter_bootstrap/_thumbnails.scss
   create    app/styles/compass_twitter_bootstrap/_tooltip.scss
   create    app/styles/compass_twitter_bootstrap/_type.scss
   create    app/styles/compass_twitter_bootstrap/_utilities.scss
   create    app/styles/compass_twitter_bootstrap/_variables.scss
   create    app/styles/compass_twitter_bootstrap/_wells.scss
   invoke      mocha:app
   create        test/index.html
   create        test/lib/chai.js
   create        test/lib/expect.js
   create        test/lib/mocha/mocha.css
   create        test/lib/mocha/mocha.js
   create        test/runner/mocha.js
<FATAL> Cannot call method 'replace' of undefined </FATAL>
@jblanche
Copy link

jblanche commented Oct 3, 2012

Same here.

@jblanche
Copy link

jblanche commented Oct 3, 2012

OK After reading the docs, you can't use ES6 like modules without requireJS, answering Yes ou No to BOTH of them fix the problem, but ideally the command line should not propose it if you said no to RequireJS.

@zendy
Copy link
Author

zendy commented Oct 3, 2012

I see. Thanks for your help.

@addyosmani
Copy link
Member

@jblanche I agree. We should only display the final question if RequireJS is used. We'll aim to fix this for the next update.

@sindresorhus
Copy link
Member

Looked into this and since we're using the grunt.prompt helper there doesn't seem to be a way to do conditional prompting. Grunt is also using an old version of node-prompt. Since helpers are disappearing anyway, I think we should just use the prompt module directly. node-prompt 2 has nested prompting, which I think will solve this. Using the prompt module directly also gives us more flexibility.

@mklabs Thoughts? Something I missed, like a painless way to do it?

@ghost ghost assigned sindresorhus Jan 31, 2013
sindresorhus added a commit to yeoman/generator-webapp_DEPRECATED that referenced this issue Jan 31, 2013
@sindresorhus
Copy link
Member

Fixed in yeoman/generator-webapp@e170a7d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants