-
-
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] RangeError: Invalid array length #209
Comments
@Robouste Just tested your component code inside the demo project (https://github.com/compodoc/compodoc-demo-todomvc-angular). Can i have your terminal logs ? |
Is there a command to output the log to a file ? I don't know how to give them to you |
The issue happens in latest version (1.0.0-beta.10). And it is related to Input and Output decorators (just remove them and the parsing process goes next). |
I can confirm it's working with version 1.0.0-beta.9 |
@didevgen Is it possible to clean as possible the AccountLookupComponent with just the code which breaks, all if possible too the files imported ? I will try to reproduce it with the compodoc demo project. Thanks |
@vogloblinsky I've used 1.0.0.beta.10 version and my parsing process stoped and here is the output in console: https://pastebin.com/y87PQfe1 |
@didevgen Can you please create a zip of your cleaned and failing project ? Thanks by advance. |
@vogloblinsky I tried also to add the copy of failed component into the same folder, and I unexpectedly found, that it had been parsed successfuly, but the original one failed. I can just tell, that not all files which have @input or @output decorators are failed. |
Just adding my 2 cents in, having the same issue. A single file, if I remove the code from it everything else works and docs get generated. With this file it doesn't work. |
Similar issue in my project: |
@shwedberlin : ok bug found, in @input/@output parsing, fixed for your project. @tme321 In which folder of your repository do you run compodoc ? |
Honestly I didn't get far enough to figure out where exactly to run compodoc. Ideally it would just be /src/lib but I was just trying to get it to work pointed at /src. |
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
Error while generating the doc :
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): RangeError: Invalid array length
Operating System, Node.js, npm, compodoc version(s)
Windows 7
Node 6.10.2
Npm 3.10.10
compodoc 1.0.0-beta.10
angular-cli 1.0.6
Angular configuration, a
package.json
file in the root folderCompodoc installed globally or locally ?
globally
Motivation for or Use Case
I would like to generate the doc
Reproduce the error
Command line used :
compodoc -p .\src\tsconfig.app.json
Here is the component for which it fails. If I remove all the class content, the doc is generated successfully:
Related issues
#103 #169
The text was updated successfully, but these errors were encountered: