This error comes from eslint code formatting, not from Vue.js. itself.
Your webpack environment is configured to test the code before creating and running your application. In this case, eslint issues this warning.
To avoid this, do the following (in the last 5 lines of your main.js file):
new Vue({
What you do above disables the eslint warning for new only in this line above. Your web package will now start your application normally.
Another option is to set the rule in .eslintrc.js (in the project root folder), where you can specify that the no-new rule should be ignored. (not recommended in this case)
source share