Sha*_*ooz 3 dart-pub dart-html
我安装了 webdev 来运行 dart web,但是当我想运行 webdev 时,它显示错误:
Building package executable...
Failed to build webdev:webdev:
../../.pub-cache/hosted/pub.dartlang.org/dds-2.1.6/lib/src/cpu_samples_manager.dart:54:21: Error: Type 'CpuSamplesEvent' not found.
void cacheSamples(CpuSamplesEvent samples) {
^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/dds-2.1.6/lib/src/cpu_samples_manager.dart:54:21: Error: 'CpuSamplesEvent' isn't a type.
void cacheSamples(CpuSamplesEvent samples) {
^^^^^^^^^^^^^^^
Run Code Online (Sandbox Code Playgroud)
我该如何修复它?
我刚刚解决了这个问题。
我编辑cpu_samples_manager.dart并~/.pub-cache/hosted/pub.dartlang.org/dds-2.1.6/lib/src/替换CpuSamplesEvent为var. ;)
无论如何,如果有更好的解决方案,请告诉我。
| 归档时间: |
|
| 查看次数: |
717 次 |
| 最近记录: |