Skip to content
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

Typescript and an error message that cannot be explained #25

Open
Timbuktu1982 opened this issue Jul 12, 2023 · 1 comment
Open

Typescript and an error message that cannot be explained #25

Timbuktu1982 opened this issue Jul 12, 2023 · 1 comment
Assignees
Labels
investigating Issue is currently being checked

Comments

@Timbuktu1982
Copy link
Contributor

Hi EnterTheNameHere,

i become following output, when i generate docs. But i cannot find a reason for this...

error: could not process the following code.
/var/www/node.js/mosquitto-subscribe-and-push/src/core/service-manager.ts
65|      */
66|     public static initInstance(): void {
67|         if (!ServiceManager.instance) ServiceManager.instance = new ServiceManager();
68|         else throw new Error('Fatal Error: ServiceManager has been already instantiated. Please use getInstance.');
69|     }
70| 
71|     /**
72|      * Function to get the self instance.
73|      *
74|      * @author  Oliver Schmidt <[email protected]
75|      * @since       1.0.0
76|      * @version     1.0.1
77|      *

warning: signature mismatch: ServiceManager.initService src/core/service-manager.ts#64
64|      */
65|     public static initInstance(): void {
66|         if (!ServiceManager.instance) ServiceManager.instance = new ServiceManager();
67|         else throw new Error('Fatal Error: ServiceManager has been already instantiated. Please use getInstance.');
68|     }
69| 
70|     /**
71|      * Function to get the self instance.
72|      *
73|      * @author  Oliver Schmidt <[email protected]
74|      * @since       1.0.0
75|      * @version     1.0.1
76|      *
@EnterTheNameHere EnterTheNameHere self-assigned this Jul 13, 2023
@EnterTheNameHere EnterTheNameHere added the investigating Issue is currently being checked label Jul 13, 2023
@EnterTheNameHere
Copy link
Owner

Hi Timbuktu1982! Sorry for getting to you weeks later. I'm guessing this is a class from file src/core/service-manager.ts - if it possible to post the whole file here?

From what I see I cannot reproduce the "error: could not process the following code."
The code seems to be perfectly fine, so I don't know why it would throw error.

I guess you are using @enterthenamehere/esdoc-typescript-plugin and have it in config in "plugins"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating Issue is currently being checked
Projects
None yet
Development

No branches or pull requests

2 participants