小编Pat*_*Pat的帖子

在 Sage 上找不到与模式 .s?(c|a)ss" 匹配的文件

当我尝试在我的 Wordpress 5.5.3 主题中运行 Sage 9.0.10 并安装 Yarn 然后执行“yarn build”或“yarn start”时,我收到此错误:

PS C:\xampp\htdocs\patrick.visiegroep\wp-content\themes\visiegroep> yarn build
yarn run v1.22.5

$ webpack --progress --config resources/assets/build/webpack.config.js

Error: No files matching the pattern "C:\xampp\htdocs\patrick.visiegroep\wp-content\themes\visiegroep\resources\assets\**\*.s?(c|a)ss" were found.
    at C:\xampp\htdocs\patrick.visiegroep\wp-content\themes\visiegroep\node_modules\stylelint\lib\standalone.js:212:12
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS C:\xampp\htdocs\patrick.visiegroep\wp-content\themes\visiegroep>
Run Code Online (Sandbox Code Playgroud)

通过“构建”和“开始”,我总是得到

Error: No files matching the pattern "C:\xampp\htdocs\patrick.visiegroep\wp-content\themes\visiegroep\resources\assets\**\*.s?(c|a)ss"
Run Code Online (Sandbox Code Playgroud)

我找不到哪里出了问题,因为在我不得不核对我的整个 Wordpress 和 Sage 之前,它曾经可以工作。重新安装后出现这种情况。

wordpress roots-sage yarnpkg

1
推荐指数
2
解决办法
2953
查看次数

标签 统计

roots-sage ×1

wordpress ×1

yarnpkg ×1