8000 async/await not working · Issue #169 · samaxes/minify-maven-plugin · GitHub
[go: up one dir, main page]

Skip to content

async/await not working #169

Open
Open

Description

@LucasE2996

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

Activity

  1. blutorange commented on Aug 8, 2019

    @blutorange
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0