wingedfox / dgeni-alive

Live docs on top of dgeni documentation generator
MIT License
26 stars 14 forks source link

Cannot read property 'includes' of undefined #31

Open stefano-caporale-wk opened 6 years ago

stefano-caporale-wk commented 6 years ago

Using v0.4.1 with grunt I get this error when I run grund dgeni-alive:

Running "dgeni-alive:api" (dgeni-alive) task
Warning: Cannot read property 'includes' of undefined Use --force to continue.

I tried on the angular-route-segment example.

DostalTomas commented 6 years ago

I'm getting this error too...

DostalTomas commented 6 years ago

I solved this issue, which is not actually issue. Simply, you must exactly specify all dgeni packages in options section. My configuration looks like this:

grunt.initConfig({
        'dgeni-alive': {
            options: {
                packages: [
                    'dgeni-packages/jsdoc',
                    'dgeni-packages/ngdoc',
                    'dgeni-packages/links',
                    'dgeni-packages/examples',
                    './packages/jsdoc-ext',
                    './packages/ngdoc-ext',
                    './packages/links-ext',
                    './packages/examples-ext'
                ],
                serve: {
                    port: 10000,
                    openBrowser: false
                },