You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
transform[stderr]: D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:27460
transform[stderr]: throw error;
transform[stderr]: ^
transform[stderr]:
transform[stderr]: Error: Invalid argument(s): Uri d:%5Cwork%5Csource%5Cphotoai-app%5Csrc%5Cstyles%5Ccommon.scss must have scheme 'file:'.
transform[stderr]: at Object.wrapException (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:1240:17)
transform[stderr]: at WindowsStyle.pathFromUri$1 (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:33270:17)
transform[stderr]: at StaticClosure.fromUri (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:16166:37)
transform[stderr]: at Object.NullableExtension_andThen0 (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:18492:40)
transform[stderr]: at Object._wrapException (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:13049:14)
transform[stderr]: at _render_closure1.call$2 (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:82164:21)
transform[stderr]: at _RootZone.runBinary$3$3 (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:27587:18)
transform[stderr]: at _FutureListener.handleError$1 (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:26136:19)
transform[stderr]: at _Future__propagateToListeners_handleError.call$0 (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:26434:49)
transform[stderr]: at Object._Future__propagateToListeners (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:4550:77)
transform[stderr]: at _Future._completeError$2 (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:26266:9)
相关平台
React Native
使用框架: React
复现步骤
在mac下3.6.20版本按照文档init,使用集成模式默认reactnative模板,sass。
在mac下android,ios能正常运行。
到windows环境下,运行
yarn android
结果rn-style-transformer插件出现sass错误
期望结果
能正常编译处理sass,正常运行
实际结果
transform[stderr]: D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:27460
transform[stderr]: throw error;
transform[stderr]: ^
transform[stderr]:
transform[stderr]: Error: Invalid argument(s): Uri d:%5Cwork%5Csource%5Cphotoai-app%5Csrc%5Cstyles%5Ccommon.scss must have scheme 'file:'.
transform[stderr]: at Object.wrapException (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:1240:17)
transform[stderr]: at WindowsStyle.pathFromUri$1 (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:33270:17)
transform[stderr]: at StaticClosure.fromUri (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:16166:37)
transform[stderr]: at Object.NullableExtension_andThen0 (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:18492:40)
transform[stderr]: at Object._wrapException (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:13049:14)
transform[stderr]: at _render_closure1.call$2 (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:82164:21)
transform[stderr]: at _RootZone.runBinary$3$3 (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:27587:18)
transform[stderr]: at _FutureListener.handleError$1 (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:26136:19)
transform[stderr]: at _Future__propagateToListeners_handleError.call$0 (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:26434:49)
transform[stderr]: at Object._Future__propagateToListeners (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:4550:77)
transform[stderr]: at _Future._completeError$2 (D:\work\source\photoai-app\node_modules@tarojs\rn-style-transformer\node_modules\sass\sass.dart.js:26266:9)
环境信息
补充信息
应该是rn-style-transformer插件依赖的sass uri的路径问题,使用更新的sass版本已经修复此问题。
老依赖 "sass": "1.37.5"
新依赖 "sass": "1.38.1"
测试解决问题
The text was updated successfully, but these errors were encountered: