editor icon indicating copy to clipboard operation
editor copied to clipboard

[BUG] Cannot find name 'ADMONITION_TYPES'

Open joelBlixify opened this issue 1 year ago • 4 comments

  • [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 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 avatar Jul 04 '24 06:07 joelBlixify

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

joelBlixify avatar Jul 04 '24 07:07 joelBlixify

My guess is that you have skipLibCheck set to false?

petyosi avatar Jul 04 '24 07:07 petyosi

@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.

joelBlixify avatar Jul 04 '24 08:07 joelBlixify

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

petyosi avatar Jul 07 '24 08:07 petyosi

Facing the same issue.

Great repo, by the way. Thanks for your effort!

eduardoliron avatar Feb 06 '25 05:02 eduardoliron

@petyosi - blind guess, but wouldn't it work by simply removing the @internal comment here?

FarSeeing avatar Mar 05 '25 10:03 FarSeeing

:tada: This issue has been resolved in version 3.25.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Mar 06 '25 11:03 github-actions[bot]