tsuquyomi icon indicating copy to clipboard operation
tsuquyomi copied to clipboard

cannot import default export

Open pirey opened this issue 6 years ago • 0 comments

So i have a module Flex.tsx

const Flex = (props) => (<div>...</div>)
export default Flex

Now i want to auto-import it by calling :TsuImport under cursor in other module, but nothing seems to happened after i run the command.

But when i use named export like this, the auto import works

export const Flex = (props) => (<div>...</div>)

Is this intentional, or is there any explanation for this?

pirey avatar Dec 05 '18 10:12 pirey