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

[BUG] Cannot find name 'ADMONITION_TYPES' #524

Open
2 tasks done
joelBlixify opened this issue Jul 4, 2024 · 4 comments
Open
2 tasks done

[BUG] Cannot find name 'ADMONITION_TYPES' #524

joelBlixify opened this issue Jul 4, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@joelBlixify
Copy link

joelBlixify commented Jul 4, 2024

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • I have read the documentation and cannot find an answer.

Describe the bug
Unable to compile and deploy due to this bug, where ADMONITION_TYPES is not declared, understandably due to it being excluded from this release, however, the error prevents deployment due to the git workflow failing.

Reproduction
Quite simply, in NextJS, using TypeScript and Yarn, running yarn format will prompt the error, and also git workflows will fail.

Expected behavior
Remove usage of the undeclared ADMONITION_TYPES variable, or declare the variable to remove the error.

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. MacOS, Windows] - Windows can act funny sometimes.
  • Browser [e.g. Chrome, Safari] - Chrome.
  • IDE - VSCode
  • VCS - GitHub

Additional context
Hope there is an easy fix for this so that you can deploy a new version as effortlessly as possible, or any suggestion if there is a workaround to this is very welcome as well.

@joelBlixify joelBlixify added the bug Something isn't working label Jul 4, 2024
@joelBlixify
Copy link
Author

If anyone else is facing a similar issue to mine, you may try this as a solution:
image

Importing the library this way bypasses the type checking

@petyosi
Copy link
Contributor

petyosi commented Jul 4, 2024

My guess is that you have skipLibCheck set to false?

@joelBlixify
Copy link
Author

@petyosi Correct, unfortunately we are required to set it to false to ensure that there are no errors coming from the various other libraries that we are using.

@petyosi petyosi reopened this Jul 7, 2024
@petyosi
Copy link
Contributor

petyosi commented Jul 7, 2024

I'll look into fixing this, it should be fairly straight forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants