Run: “npm run dev” reports an
error: As shown in the figure below, “”You may use special comments to disable some warnings.”
Reason: Eslint’s detection mechanism.
There are two solutions
Method 1:
is to comment out the 43rd line of code in the build/webpack.base.conf.js file, as shown in the figure below, and then restart npm run dev
Method 2:
Change the value true of useEslint in line 26 of the config/index.js file to false, as shown in the figure below, and then restart npm run dev
Read More:
- Introduce wangeditor5 to run an error: You may need an appropriate loader to handle this file type (es6 compatibility issue)
- How to Solve Error: You need to use a Theme.AppCompat theme (or descendant) with this activity.
- Solve the problem that the native machine cannot use ant script checkout project
- Vue Cli error: vuecliYou may need an additional loader to handle
- Report Duplicate keys detected: ‘0’. This may cause an update error in VUE and the solution
- Solutions to error reporting after adding comments to XML files
- How to Fix the common Warning Errors after Vue Project Startup
- Error: Comments are not permitted in JSON [How to Solve]
- Proguard Packaging Error: You have to specify ‘-keep‘ options if you want to write out kept elements with ‘-print
- [Solved] Wepy build watch Error: ERR! Parse WePY config failed. Are you trying to use
- Vue el-table Error: Duplicated keys detected This may casuse an update error
- Git: How to Solve Error: Please commit your changes or stash them before you merge.
- [Solved] pagehelper Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘LIMIT 1’
- How to Solve VMware Workstation Error: This virtual machine appears to be in use.
- Java handles special characters in URL
- How to Solve SpringBoot MongoDB MongoAutoConfiguration Startup Error
- How to Solve Vue & Django Cross-domain Issue
- How to Solve hadoop3.x.x sh start-dfs.sh Startup Error
- Initial installation of hive-2.1.0 startup error problem solution
- Vue: How to Solve Error uncaught (in promise) cancel