You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the same problem as in #921, #317, #1018, #637, namely, all of our components directly import html templates as strings rather than using the templateUrl property (we are NOT using angular-cli). A failing component looks like the following:
example.component.ts
import { Input, Component } from '@angular/core'
import template from './example.component.html'
@Component({
selector: 'example',
template,
})
export class ExampleComponent {
}
Unhandled Rejection at: Promise {
<rejected> TypeError: Cannot read property 'kind' of undefined
at Object.isArrayLiteralExpression (/home/joe/src/sandbox/compodoc-reproduction/node_modules/@ts-morph/common/dist/typescript.js:27423:21)
at SymbolHelper.parseSymbols (/home/joe/src/sandbox/compodoc-reproduction/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:7792:24)
at /home/joe/src/sandbox/compodoc-reproduction/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:7827:62
at Array.map (<anonymous>)
at SymbolHelper.getSymbolDeps (/home/joe/src/sandbox/compodoc-reproduction/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:7827:30)
at ComponentHelper.getComponentTemplate (/home/joe/src/sandbox/compodoc-reproduction/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:7866:35)
at ComponentDepFactory.create (/home/joe/src/sandbox/compodoc-reproduction/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:8269:35)
at visitDecorator (/home/joe/src/sandbox/compodoc-reproduction/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:8820:95)
at Array.forEach (<anonymous>)
at parseNode (/home/joe/src/sandbox/compodoc-reproduction/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:8938:64)
Overview of the issue
This is the same problem as in #921, #317, #1018, #637, namely, all of our components directly import
html
templates as strings rather than using thetemplateUrl
property (we are NOT using angular-cli). A failing component looks like the following:Operating System, Node.js, npm, compodoc version(s)
1.1.14
Angular configuration, a
package.json
file in the root folderCompodoc installed globally or locally ?
locally
If possible sourcecode of the file where it breaks
Here's a repo where I've reproduced the problem:
https://github.com/joefiorini/compodoc-repro-example
Setup following the documentation exactly...
If possible your terminal logs before the error
Motivation for or Use Case
Reproduce the error
Related issues
Suggest a Fix
The text was updated successfully, but these errors were encountered: