The problem is that remark-parse was last published (2 years ago) before"moduleResolution": "node16" was a thing (it’s not even in remark yet: https://github.com/remarkjs/remark/blob/main/tsconfig.json). 2 years ago, the TS CLI generated code that doesn’t work in todays TS with moduleResolution: node16.
I checked remark-parse, and it looks like it is already extending the root tsconfig.json, which was up to date .
I tried rebuilding the package locally, and the type error is no longer reported:
node_modules/remark-parse/lib/index.d.ts:3:26 - error TS2307: Cannot find module 'mdast-util-from-markdown/lib' or its corresponding type declarations.
3 options: void | import('mdast-util-from-markdown/lib').Options | undefined
Found 1 error in node_modules/remark-parse/lib/index.d.ts:3
Solution
It looks like all what we need is cutting out a new release should fix this.
Please let me know if there is anything else I can do.
Initial checklist
Problem
Following up on https://github.com/syntax-tree/mdast-util-from-markdown/pull/32 .. cc @wooorm
I checked
remark-parse
, and it looks like it is already extending the roottsconfig.json
, which was up to date .I tried rebuilding the package locally, and the type error is no longer reported:
Solution
It looks like all what we need is cutting out a new release should fix this.
Please let me know if there is anything else I can do.
Alternatives
N/A