design-first / design-first/system-designer

async functions - where do I use 'esversion: 8'?

Open
#145 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
HTML
Stars
1.1k
Forks
160
PR merge metrics
No merged PRs in 30d

Description

I'm trying to create an async function inside a behavior and I get the following message:

"async functions" is only available is ES8 (use 'esversion: 8').

I tried to add it to the behavior declaration in the model, however the message is still displayed, suggesting I didn't add it in the correct place.

Where do I add this?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported async-function error inside a behavior and trace where the behavior declaration reads JavaScript options. Determine where the ES8 setting is documented or configured, then update the relevant guidance so users can place it correctly and confirm the error no longer appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.