Skip to content

import/export failed to find named exports from indirect jsx (or tsx) files #2093

@yifanwww

Description

@yifanwww

There are three files as following:

// module/feature.tsx or module/feature.jsx
export function func() {
    console.log('Hello world');
}
// module/index.ts
export * from './feature';
// index.ts
export * from './module';

Then an error No named exports found in module './module'. eslint(import/export) will be raised in the outer index.ts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions