I encountered an issue in my VueJs project with the following error message:
Error: SyntaxError: let is a reserved identifier
This error specifically appears when using older browsers such as FireFox 3x. I am aware that this can potentially be resolved by utilizing babel, however, since I am new to it, I am seeking guidance on how to address this issue.
Currently, my package.json includes the following configuration:
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
In addition, my babel.config.js file is quite straightforward:
module.exports = {
presets: ["@vue/app"]
}
What specific adjustments or fixes should I implement in order to ensure compatibility with older browsers?