Today, in a Vue project, I planned to modify the theme of vant, and then an unexpected error occurred. I introduced the less file into main.js, and an error was reported when the project was started.
After looking for the reason, I didn’t find out. Then I tried on the previous old project. From here, I can know that it must be the reason for the version of something. Finally, I found that it is the scaffolding. The new version of Vue cli has helped us configure the less loader and put it in util.js, We just need to modify the webpack.base.conf.js file under the build file, delete or comment out this code, and the project can run normally.
Read More:
- Syntax error: typeerror: this.getoptions is not a function an error is reported when the. SCSS file is imported globally
- When installing pyaudio, an error is reported: failed error: portaudio. H: there is no such file or directory
- [OpenGL · error] visual studio 2019 reports an error. It is an external symbol gladloadglloader that cannot be parsed. This symbol is referenced in the function main
- The file is generated, but an error is still reported. Error: CreateProcess failed
- An error is reported when the file in hive parquet format is written in the Flink connection
- After vscode installs ts, TSC compiles and generates JS, and an error is reported (repeated variables, etc.)
- An error is reported when uploading a file using commonsmultipartfile
- JS uses the and or operator, and an error is reported: uncaught rangeerror: maximum call stack size exceeded
- The docker copies the win10 host file into the docker container. An error is reported: copying between containers is not supported
- When react devtools is enabled, an error is reported for the project
- When the mybatis field contains an expression, an error is reported when it is stored in the database
- After Vue is packaged, a blank page appears, an error is reported in the resource request, and there is no error handling scheme
- When the spring MVC project is running on idea, an error is reported when the controller is a null pointer
- An error of 500 is reported when an item is assigned to a role
- The Vue project is packaged and deployed to tomcat, and an Error 404 is reported as soon as it is refreshed
- An error is reported when executing MVN. The diamond operator is not supported in source-1.5
- An error is reported when passing data pages using Ajax: Vue is not defined
- When python installs pocketsphinx module (package), an error is reported: command ‘swig.exe’ failed: No such file or directory
- Exception record. When eclipse starts, an error is reported when workspace is opened
- An error is reported when Clickhouse is started. The error log information is: structure needs cleaning