Parsing error: ImportDeclaration should appear when the mode is ES6 and in the module context
"parserOptions": { "ecmaVersion": 12, "sourceType": "module" },
latest였던 ecmaVersion을 12로 변경해서 해결했다.