Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yifanwww opened this issue May 22, 2021 · 1 comment
Closed

Comments

@yifanwww
Copy link

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.

@ljharb
Copy link
Member

ljharb commented Sep 19, 2021

Do you have .ts and .jsx both in the import/extensions setting?

This test cases passes, so I'll close the issue when I push up the commit that adds it.

ljharb added a commit to ljharb/eslint-plugin-import that referenced this issue Sep 19, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants