I am currently developing a web application using Vue.js and Flask. While I can successfully compile the Vue app on my laptop by running npm run build
and integrating the static files into my Flask app, I encounter an issue when attempting to do this on a remote server (PythonAnywhere.com). Upon executing npm run build
, I receive an error stating SyntaxError: Unexpected token
, which appears to be related to the use of =>
in the build.js file.
Upon inspecting the build.js file in PyCharm, I noticed that the linter was also flagging the same code point as erroneous. Switching PyCharm to utilize ES6 rectified the linting errors.
The node and npm versions running on the remote server are:
- node v0.10.37
- npm v3.10.6
What steps should I take to enable the remote server to support ES6 syntax during the execution of npm run build
?