Vue3 successfully installed sass, but the following error occurred during compilation
ERROR Failed to compile with 1 error PM 1:05:09
error in ./src/components/HelloWorld.vue?vue&type=style&index=0&id=469af010&lang=scss
Syntax Error: TypeError: this.getOptions is not a function
@ ./node_modules/vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/vue-loader-v16/dist/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-2!./node_modules/[email protected]@sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/HelloWorld.vue?vue&type=style&index=0&id=469af010&lang=scss 4:14-464 15:3-20:5 16:22-472
@ ./src/components/HelloWorld.vue?vue&type=style&index=0&id=469af010&lang=scss
@ ./src/components/HelloWorld.vue
@ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/App.vue?vue&type=script&lang=js
@ ./src/App.vue?vue&type=script&lang=js
@ ./src/App.vue
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.31.108:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
Cause of the problem
When the above error occurs, it is found that the version of SASS loader is too high, so the above problem occurs in the compilation
resolvent
We need to unload
cnpm uninstall less-loader
After reinstalling
cnpm i [email protected] --save-dev
Finally, it is compiled successfully
Read More:
- [WordPress Error] Fatal error undefined function is_network_admin()
- PHP php-config is not installed error in ubuntu 16 [How to Solve]
- Fatal error: Function name must be a string in
- Using $this when not in object context in (How to Fix)
- [PHP] __autoload function will be called when class_exists does not exist
- [Solved] Artisan error: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes
- PHP encryption 3DES error Call to undefined function: mcrypt_module_open() solution
- laravel The Process class relies on proc_open, which is not available on your PHP installation.
- Laravel5.5 Error: SQLSTATE[42000] Syntax error or access violation 1071 Specified key was too long; max k
- [Solved] PDOException::(“SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long;
- [PHP] Solve PHP Call to undefined function ldap_connect()
- PHP parse error: syntax error, unexpected ‘use’
- PHP Error Object of class mysqli could not be converted to string in
- [Solved] PHP post Datas json_decode Error: 4 JSON_ERROR_SYNTAX
- [Solved] PHP Fatal error: Uncaught Error: Class ‘Redis‘ not found in
- [Solved] WordPress Upgrade PHP 5.6 to 7.x Fatal error: Uncaught Error: Call to undefined function mysql_connect()
- [PHP] php8 jit does not support 32-bit systems WARNING: JIT not supported by host architecture
- [Solved] Fatal error: Class ‘think\Container‘ not found & [InvalidArgumentException] Could not find package
- composer Error: The requested PHP extension ext-bcmath * is missing from your system. Install or enable
- Mac PHP Fatal error: Class ‘Memcache’ not found