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

async/await not working #169

Open
LucasE2996 opened this issue Jul 26, 2019 · 1 comment
Open

async/await not working #169

LucasE2996 opened this issue Jul 26, 2019 · 1 comment

Comments

@LucasE2996
Copy link

I am currently using async functions in my project, and when I tried to minify the code the following errors occurred:

[ERROR] missing ; before statement at js-1.0.0.js line 198:15
async function getAllManagers() {
               ^

[ERROR] missing ; before statement at js-1.0.0.js line 202:25
        result = await $.ajax({
                         ^

[ERROR] syntax error at js-1.0.0.js line 203:18
            type: 'GET',
                  ^

[ERROR] syntax error at js-1.0.0.js line 204:17
            url: host + '/get-all-manager',
                 ^

[ERROR] syntax error at js-1.0.0.js line 205:10
        });
          ^

[ERROR] invalid return at js-1.0.0.js line 207:15
        return result;
               ^

[ERROR] syntax error at js-1.0.0.js line 211:1
}
 ^

[ERROR] missing ; before statement at js-1.0.0.js line 220:25
        result = await $.ajax({
                         ^

[ERROR] syntax error at js-1.0.0.js line 221:18
            type: 'GET',
                  ^

[ERROR] syntax error at js-1.0.0.js line 222:17
            url: host + '/get-all-supervisor',
                 ^

[ERROR] syntax error at js-1.0.0.js line 223:10
        });
          ^

[ERROR] Compilation produced 11 syntax errors.

Version used: 1.7.6

@blutorange
Copy link

See #168 (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