Вот мой код js:
import axios from 'axios';
const quotes = document.querySelector('.quotes');
const getResults = async () => {
try {
const res = await axios('http://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1');
quotes.innerHTML = res.data[0].content;
console.log(res.data[0].content);
} catch(err) {
console.log(err);
}
}
getResults();
Выдает следующую ошибку: Unexpected identifier 'axios'. import call expects exactly one argument
.Я запускаю его в браузере и не использую какой-либо пакет, есть идеи, почему это происходит?