ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    解决 Scss @use rules must be written before any other rules

    May 19, 20226 min read

    解决 Scss @use rules must be written before any other rules

    修改前config.js

     css: {
        loaderOptions: {
          scss: {
            prependData: `
              @import "@css/colors.scss";
            `,
          },
        },
      },
    

    修改后config.js

    css: {
        loaderOptions: {
          scss: {
            prependData: `
               @use "@css/colors.scss" as *;
            `,
          },
        },
      },
    

    相关文章

    世界上最深的坑是哪里?

    玛里亚纳海沟是位于太平洋西部的世界最深坑,其最深处达10,977米。

    解决重定向后页面的异步操作没有被正确触发

    解决重定向后页面异步操作未正确触发的问题,可以通过监控路由变化、正确使用生命周期钩子、优化路由守卫逻辑和使用异步组件等方法来实现。

    Git 标签(tag)的使用笔记

    Git 标签(tag)用于标识特定提交,支持轻量和附注两种类型,便于版本控制和多人协作。

    解决sudo: unable to dlopen /opt/libexec/sudoers.so: (null)

    错误表明sudo无法加载sudoers.so文件,解决方法包括重新安装sudo、检查文件权限和路径、再次卸载安装sudo,以及检查系统日志。

    Linker command failed with exit code 1 (use -v to see invocation)

    The error "Linker command failed with exit code 1" in Xcode can be resolved by cleaning the build, checking for duplicate symbols, updating the Podfile, updating Xcode and Flutter SDK, examining the build log, and checking build settings.