Skip to content

Cannot read property 'Base' of undefined #7

@ivostoykov

Description

@ivostoykov

Hi,

generator failed with the mentioned error. Below are versions and output (patched windows 10). Comments/help appreciated. Thank you

x:\Projects\_test>node -v
v7.7.2

x:\Projects\_test>npm -v
4.6.1

x:\Projects\_test>yo --version
1.8.5

x:\Programs\admin\nodejs>npm list generator-durandal
x:\Programs\admin\nodejs
`-- generator-durandal@0.1.5

x:\Projects\_test>yo durandal
x:\Programs\admin\nodejs\node_modules\generator-durandal\app\index.js:17
util.inherits(DurandalGenerator, yeoman.generators.Base);
                                                  ^

TypeError: Cannot read property 'Base' of undefined
    at Object.<anonymous> (x:\Programs\admin\nodejs\node_modules\generator-durandal\app\index.js:17:51)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.get [as durandal:app] (x:\Programs\admin\nodejs\node_modules\yo\node_modules\yeoman-environment\lib\store.js:40:23)
    at Store.get (x:\Programs\admin\nodejs\node_modules\yo\node_modules\yeoman-environment\lib\store.js:64:35)

x:\Projects\_test>

PS.: I've dived into the problem and found out that after requiring 'yeoman-generator' on line 4 both yeoman.generators and yeoman.Base are undefined. I'm not sure if I'm missing something...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions