Css 网页包sass加载程序无法读取内联评论

Css 网页包sass加载程序无法读取内联评论,css,webpack,sass,Css,Webpack,Sass,我有一个客户的文件夹,上面有typo3扩展名。里面有很多.scss文件,需要编译成bundle.css和webpack。当我运行webpack时,它会显示: ERROR in ./typo3conf/custom_extension/Resources/Private/Styles/custom-extension.scss Module build failed (from ./node_modules/sass-loader/dist/cjs.js): SassError: expected

我有一个客户的文件夹,上面有typo3扩展名。里面有很多.scss文件,需要编译成bundle.css和webpack。当我运行webpack时,它会显示:

ERROR in ./typo3conf/custom_extension/Resources/Private/Styles/custom-extension.scss
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: expected ";".
    ╷
630 │ /// Icon nur für den Secondary Button aktivieren oder deaktivieren (true oder false)
    │                                                                                     ^
    ╵
   typo3conf/custom_extension/Resources/Private/Styles/custom-extension.scss 630:85  root stylesheet
此错误发生在任何scss文件中。对我来说,似乎scss加载器不承认这一行是一个评论。。。 我的网页包配置如下所示。Im使用sass资源加载程序导入变量

module.exports = {
entry: ['/typo3conf/custom_extension/Resources/Private/Styles/custom-extension.scss'],
output: {
    filename: 'bundle.css',
},
module: {
  rules: [
    {
        test: /\.scss$/i,
        use: [
            'sass-loader',
            {
                loader: 'sass-resources-loader',
                options: {
                    resources: ['./typo3conf/custom_extension/Resources/Private/Styles/variables/_variables.scss']
                }
            }
        ]
        
    },
  ],
},
})

我从今天早上就开始排除故障。但是人们在编译.scss文件中的内联注释时遇到的所有问题都是在使用postcss或css加载器时。但是我用的是sass加载程序。所以我不知道为什么,也不知道该怎么办。如果有人有主意,谢谢你们