-
-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Error when Component Metadata was imported. #94
Comments
Ok reproduced. The MyAgClickableParentComponentSchema break the parsing. Will try to resolve that asap. |
compodoc/src/app/compiler/dependencies.ts Line 1184 in aee4a24
Normally decorator.expression.arguments[0] was an instance of NodeObject , but in this case IdentifierObject .
|
It called by compodoc/src/app/compiler/dependencies.ts Line 1266 in aee4a24
directiveInfo = this.visitDirectiveDecorator(classDeclaration.decorators[i]); But I couldn't find the usage of |
Is it possible to get the not-yet parsed variable ( |
@AilisObrian not yet done the test, may be. |
I also get the same error when running compodoc |
Hi, this also happens when you try to extend your decorator with spread ( For example:
import { trigger, state, transition, animate, style } from "@angular/animations";
export const DECORATIONS_BASE = {
styles:[':host{position:static;display:block;height: auto; width: auto;}'],
animations: [
trigger('shownChanged', [
state("SHOWN_STATE", style({ opacity: 1 })),
state("HIDDEN_STATE", style({ opacity: 0 })),
transition('* => *', animate('.2s'))
])
]
};
import { Component, OnInit } from '@angular/core';
import {DECORATIONS_BASE} from './base';
@Component({
selector: 'my-comp',
templateUrl: './comp.component.html',
styleUrls: [ './comp.component.css' ],
...DECORATIONS_BASE
})
// export class YourComponentClassName Hope it's possible to fix. Thank you! |
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context. |
Overview of the issue
RangeError: Invalid array length
Operating System, Node.js, npm, compodoc version(s)
Node.js v6.9.1
npm 4.0.2
compodoc 0.0.37
Angular configuration, a
package.json
file in the root folderhttps://gist.github.com/minhoryang/942c6c8bd4e0507e296d417c80dda00f
Compodoc installed globally or locally ?
locally
Motivation for or Use Case
Reproduce the error
https://gist.github.com/minhoryang/942c6c8bd4e0507e296d417c80dda00f
includes
RangeError: Invalid array length
happenedRelated issues
#11
Suggest a Fix
The text was updated successfully, but these errors were encountered: