我已经按照 dart libsass 的说明进行操作: https ://github.com/oddrationale/dart_libsass
编译步骤正确完成。但是 - 当我尝试执行 sassd.dart 时,我得到以下信息:
dart bin/sassd.dart ~/projects/web_apps_dart/lib/client/components/picker/picker.scss ~/Desktop/test.css
Cannot find extension library'package:libsass/libsass.dart': error: line 10 pos 1: library handler failed
import 'dart-ext:libsass/src/sass_extension';
^
Cannot find initialization function in extension'package:libsass/libsass.dart': error: line 10 pos 1: library handler failed
import 'dart-ext:sass_extension';
^
sass_extension.cc exists at ~/lib/src/sass_extension.cc
问题:我们如何在最近的 Dart 版本中正确导入 sass_extions.cc 文件?