vscode live-server extension v5.6.1 fails to resolve 'axios' JavaScript import

Well using skypack solved the problem:

import axios from 'https://cdn.skypack.dev/axios';

instead of

import axios from 'axios';