Skip to content

docs: use exports to import react component#74

Open
giuem wants to merge 1 commit intoSukkaW:masterfrom
giuem:docs-borken-import
Open

docs: use exports to import react component#74
giuem wants to merge 1 commit intoSukkaW:masterfrom
giuem:docs-borken-import

Conversation

@giuem
Copy link
Copy Markdown

@giuem giuem commented May 18, 2022

No description provided.

Copy link
Copy Markdown
Owner

@SukkaW SukkaW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TypeScript's support for the Node.js compatible exports map is still in beta.

@giuem
Copy link
Copy Markdown
Author

giuem commented May 25, 2022

TypeScript 4.7 already released. Shall we followup and set package.json's type to module?

@SukkaW
Copy link
Copy Markdown
Owner

SukkaW commented May 25, 2022

TypeScript 4.7 already released. Shall we followup and set package.json's type to module?

You have to use moduleResolution: nodenext in order to use Node.js exports map in TypeScript, which is still unstable. So no, not yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants