[BUG] Cannot find name 'ADMONITION_TYPES'
- [x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- [x] 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
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.
If anyone else is facing a similar issue to mine, you may try this as a solution:
Importing the library this way bypasses the type checking
My guess is that you have skipLibCheck set to false?
@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.
I'll look into fixing this, it should be fairly straight forward.
Facing the same issue.
Great repo, by the way. Thanks for your effort!
@petyosi - blind guess, but wouldn't it work by simply removing the @internal comment here?
:tada: This issue has been resolved in version 3.25.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket: