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

Hide the [@zenuml/core] Store is a function and is not initiated in 1 second. warning #169

Open
aloisklink opened this issue Jun 15, 2024 · 1 comment

Comments

@aloisklink
Copy link
Member

The @mermaid-js/mermaid-cli program uses @mermaid-js/mermaid-zenuml as a dependency, which then uses @zenuml/core.

It sounds like a [@zenuml/core] Store is a function and is not initiated in 1 second. warning is being logged due to the following line of code:

let storeInitiationTime: number = 0;
setTimeout(function () {
if (!storeInitiationTime) {
console.warn(
"[@zenuml/core] Store is a function and is not initiated in 1 second.",
);
}
}, 1000);

This warning is causing some confusion with @mermaid-js/mermaid-cli users (see mermaid-js/mermaid-cli#588), and it makes our test logs messier.

It looks like a timer is started whenever @zenuml/core is imported, and that warning is automatically printed if ZenUML isn't used within 1 second.

Is there any chance we can remove this warning, or at least hide it by default?

@l1n
Copy link

l1n commented Aug 23, 2024

Bumping this, would love to have this option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants