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

Getting error when trying to use b.exportSpecifier #1324

Open
lockenj opened this issue Jun 21, 2023 · 1 comment
Open

Getting error when trying to use b.exportSpecifier #1324

lockenj opened this issue Jun 21, 2023 · 1 comment

Comments

@lockenj
Copy link

lockenj commented Jun 21, 2023

I am trying to create an Export List using:
b.exportNamedDeclaration( null, [b.exportSpecifier( null, b.identifier(this.className) )] ),

I keep getting this error:
Error: no value or default function given for field "exported" of ExportSpecifier("id": Identifier | null, "name": Identifier | null)

Any guidance would be appreciated

@croenid
Copy link

croenid commented Feb 26, 2024

I ran into the same error. There is a workaround to use the .from method shown here: benjamn/ast-types#425 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants