V
V
Vanik Khachatryan2018-05-29 19:51:41
JavaScript
Vanik Khachatryan, 2018-05-29 19:51:41

Why don't Axios asynchronous requests work in Vue?

So I send

async created() {
            let code = await this.$axios.post('/worker/promocode')
            this.code = code.promocode;
        }

And I get this:
ReferenceError: regeneratorRuntime is not defined
What's the problem? How is it treated

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question