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

Unexpected token with dynamic import with type assertion #727

Closed
remisture opened this issue Aug 6, 2023 · 1 comment
Closed

Unexpected token with dynamic import with type assertion #727

remisture opened this issue Aug 6, 2023 · 1 comment

Comments

@remisture
Copy link

Seems like xo struggle to parse this. What can I do?

const serviceAccount = await import('../serviceAccount.json', { assert: { type: 'json' } });

"Parsing error: Unexpected token , "

@fregante
Copy link
Member

Not an XO issue:

Import attributes are not yet finalized so ESLint does not support them yet.

@fregante fregante closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2023
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