vsCode gives a warning on apparently valid code from vue.js docs

following vue.js guide for lazi-loading , when i’m writing this line of code:

import Vue from 'vue'
import Router from 'vue-router'
const Health = () => import('@/components/health')

vscode throws the following problems:

file: 'file:///c%3A/projects/vue-lazy-loading/src/router/index.js'
severity: 'Error'
message: 'Expression expected.'
at: '3,22'
source: 'js'

file: 'file:///c%3A/projects/vue-lazy-loading/src/router/index.js'
severity: 'Error'
message: 'Variable declaration expected.'
at: '3,28'
source: 'js'

visually, that’s how it looks:
enter image description here

is there something wrong with the code, or with VS-code?
what is the correct way to write it?


Source: stackoverflow-javascript