Skip to content

componentsjs-generator outputs the error "Could not load class or interface or other type Omit from ..." #139

Answered by joachimvh
ksaito-hiu asked this question in Q&A
Discussion options

You must be logged in to vote

The problem is a consequence of this issue: LinkedSoftwareDependencies/Components-Generator.js#80. The Components.js generator has problems with native Node.js builtins, such as Omit. You can tell it to ignore such classes by having a .componentsignore file and adding -i .componentsignore to your components-generator call and having a JSON array where each entry is a string corresponding to a class/interface the Components.js generator should ignore. So in this case you would [ "Omit" ] in that file. The hello world example already has such a file where you can just fill this in.

Although your class does not use Omit, you are depending on a class that does, causing this issue. You can see…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ksaito-hiu
Comment options

You must be logged in to vote
2 replies
@joachimvh
Comment options

@ksaito-hiu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants