Skip to content

Incorrect Error for ExportNamedDeclarations with sources #1416

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

Closed
leeyi45 opened this issue May 3, 2023 · 2 comments
Closed

Incorrect Error for ExportNamedDeclarations with sources #1416

leeyi45 opened this issue May 3, 2023 · 2 comments

Comments

@leeyi45
Copy link
Contributor

leeyi45 commented May 3, 2023

In folder mode:

// /program.js
import { show, heart } from './other.js';
show(heart);

// /other.js
export { show, heart } from 'rune';

leads to the error: Line 5: ReferenceError: Cannot access 'show' before initialization. If this type of export is unsupported, then this error message is not indicative of that fact.

Code here

@martin-henz
Copy link
Member

Yes, Source syntax should explicitly forbid the export syntax

export { show, heart } from 'rune';

@leeyi45
Copy link
Contributor Author

leeyi45 commented Apr 24, 2025

Resolved by #1745

@leeyi45 leeyi45 closed this as completed Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants