收藏
回答

Miniprogram CI SASS 文件编译出错,提示路径有问题?

 miniprogram-ci@1.8.35


脚本执行官方的ts+sass模板,脚本参数如下(脱敏后

miniprogram-ci preview --pp . --enable-es6 true --enable-es7 true --enable-minify-js true --enable-minify-wxml true --enable-minify-wxss true --enable-autoprefixwxss true 


提示sass文件出错如下

[Error: The file (/tmp/demo-project/assets/styles/tools.scss) required by assets/styles/tools.scss is outside the project
File: assets/styles/tools.wxss] {
  dartException: <ref *1> [SummerError: The file (/tmp/demo-project/assets/styles/tools.scss) required by assets/styles/tools.scss is outside the project] {
    code: 10046,
    path: 'assets/styles/tools.wxss',
    '$cachedTrace': _StackTrace { _exception: [Circular *1], _trace: '' }
  }
}


使用开发者工具开发、上传、体验、发布均没问题

回答关注问题邀请回答
收藏
登录 后发表内容