Skip to content

Cannot import root module #623

Answered by Tyriar
TomzBench asked this question in Q&A
Jul 10, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You want to use import * as pty from 'node-pty'; as you want to import everything as pty. import pty from "node-pty" imports the default module which doesn't exist. I believe we're doing the right thing here as there's no export default in node-pty.d.ts.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TomzBench
Comment options

Answer selected by Tyriar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #611 on July 28, 2023 13:48.