ITADN

Version 4.0 breaks types

#1254OpenGerrit0 创建于 2026-02-28
G
Gerrit0commented
### Validations - [x] Follow our [Code of Conduct](https://github.com/shikijs/shiki/blob/main/CODE_OF_CONDUCT.md) - [x] Read the [Contributing Guide](https://github.com/shikijs/shiki/blob/main/CONTRIBUTING.md). - [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. ### Describe the bug The switch to rolldown introduced an import to an untyped module in Shiki's declaration file, which introduces new TS compiler errors in projects which do not enable `skipLibCheck` ```ts node_modules/shiki/dist/bundle-full.d.mts:1:51 - error TS7016: Could not find a declaration file for module './chunk-CtajNgzt.mjs'. '/home/gerrit/Desktop/mini-shiki/node_modules/shiki/dist/chunk-CtajNgzt.mjs' implicitly has an 'any' type. 1 import { n as __reExport, t as __exportAll } from "./chunk-CtajNgzt.mjs"; ``` This can be introduced simply by importing shiki. ### Reproduction ```ts import {} from "shiki" // npx tsc ``` ### Contributes - [ ] I am willing to submit a PR to fix this issue - [ ] I am willing to submit a PR with failing tests
0 条评论