Closed jameshfisher closed 1 year ago
The root cause seems to be these lines, which omit the .js
extension from the import: https://github.com/syntax-tree/mdast-util-directive/blob/ffcc82c549764cc0acc62f825873fb268bcdc623/index.js#L12-L14
This is an error according to TypeScript policy: https://github.com/microsoft/TypeScript/issues/52412
I suggest these lines should have .js
added to them?
Thanks @jameshfisher!
node16
module resolution support is an ongoing effort across the unified/syntax-tree/remark ecosystems.
Pull requests are welcome!
I appreciate your time opening this. As this will be going out to 300+ repos, and we don't necessarily want 300+ tracking issues for this. 😅 I'm going to close this issue, but know that:
node16
resolution is planned and in progressThanks again! 🙇
Hi! This was closed. Team: If this was fixed, please add phase/solved
. Otherwise, please add one of the no/*
labels.
Hi! Thanks for taking the time to contribute!
Because we treat issues as our backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn’t an exact duplicate but is closely related.
Thanks, — bb
Hi team! It seems this post is a duplicate, but hasn’t been marked as such. Please post a comment w/ Duplicate of #123
(no final .
) to do so. See GH docs for more info.
Thanks, — bb
Initial checklist
Affected packages and versions
mdast-util-directive@2.2.2
Link to runnable example
https://github.com/jameshfisher/bug-report-remark-node16
Steps to reproduce
Set
"moduleResolution"
to"node16"
or"nodenext"
intsconfig.json
.Run
tsc
.Expected behavior
No typechecking errors.
Actual behavior
Affected runtime and version
Node 16
Affected package manager and version
npm 8
Affected OS and version
macOS
Build and bundle tools
No response