Skip to content
This repository

ReferenceError: _classify is not defined on yo mocha:generator #1016

Closed
hemanth opened this Issue April 10, 2013 · 3 comments

3 participants

hemanth.hm Pascal Hartig Sean Goresht
hemanth.hm
Collaborator
$ yo mocha:generator

undefined:10
((__t = ( _classify(name) )) == null ? '' : __t) +
                             ^
ReferenceError: _classify is not defined
    at eval (/lodash/template/source[1]:10:30)
    at TestGenerator.underscore [as _engine] (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/util/engines.js:33:30)
    at TestGenerator.engine (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/actions/actions.js:195:10)
    at TestGenerator.template (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/actions/actions.js:174:15)
    at TestGenerator.createTestSuite (/usr/local/lib/node_modules/yo/node_modules/generator-mocha/generator/index.js:40:8)
    at next (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/base.js:275:18)
    at TestGenerator.run (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/base.js:289:4)
    at Environment.run (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/env.js:424:20)
    at init (/usr/local/lib/node_modules/yo/bin/yo:68:7)
    at pre (/usr/local/lib/node_modules/yo/bin/yo:81:3)

yo --version 1.0.0-beta.4

Pascal Hartig
Owner
passy commented April 11, 2013

Fixed via yeoman/generator-mocha@77176e4. However, the subgenerator isn't really ready for Yeoman 1.0 yet.

Pascal Hartig passy closed this April 11, 2013
hemanth.hm
Collaborator

:+1:

Sean Goresht

@passy, can you confirm whether it is now possible to use templating in subgenerators yet? I get the following error when I try to use a simple variable in my custom generator:

ReferenceError: name is not defined
    at eval (/lodash/template/source[3]:7:21)
    at ExpressGenerator.underscore [as _engine] (/Users/imacJT/node_modules/generator-express/node_modules/yeoman-generator/lib/util/engines.js:33:30)
    at ExpressGenerator.engine (/Users/imacJT/node_modules/generator-express/node_modules/yeoman-generator/lib/actions/actions.js:271:10)
    at ExpressGenerator.template (/Users/imacJT/node_modules/generator-express/node_modules/yeoman-generator/lib/actions/actions.js:250:15)
    at ExpressGenerator.packageJSON (/Users/imacJT/node_modules/generator-express/custom/index.js:161:7)
    at /Users/imacJT/node_modules/generator-express/node_modules/yeoman-generator/lib/base.js:278:20
    at /Users/imacJT/node_modules/generator-express/node_modules/yeoman-generator/node_modules/async/lib/async.js:548:21
    at /Users/imacJT/node_modules/generator-express/node_modules/yeoman-generator/node_modules/async/lib/async.js:224:13
    at iterate (/Users/imacJT/node_modules/generator-express/node_modules/yeoman-generator/node_modules/async/lib/async.js:131:13)
    at /Users/imacJT/node_modules/generator-express/node_modules/yeoman-generator/node_modules/async/lib/async.js:142:25

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.