dgeni-alive icon indicating copy to clipboard operation
dgeni-alive copied to clipboard

Cannot read property 'includes' of undefined

Open stefano-caporale-wk opened this issue 7 years ago • 2 comments

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.

stefano-caporale-wk avatar Nov 29 '17 14:11 stefano-caporale-wk

I'm getting this error too...

DostalTomas avatar Jan 02 '18 14:01 DostalTomas

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
                },

DostalTomas avatar Jan 03 '18 12:01 DostalTomas