2.0.0-dev.69.1
版本。而且,我已经将 pubspec.yaml 文件更新为此:
environment:
sdk: '>=2.0.0-dev.69.1 <2.0.0'
dependencies:
sass_builder: ^2.1.1
angular: ^5.0.0-beta+2
angular_components: ^0.9.0-beta
angular_forms: ^2.0.0-beta+2
angular_router: ^2.0.0-alpha+17
js: ^0.6.1+1
path: ^1.6.2
dev_dependencies:
angular_test: ^2.0.0-beta+2
build_runner: ^0.9.2
build_test: ^0.10.3+1
build_web_compilers: ^0.4.1
test: ^1.3.0
我运行命令pub global activate webdev
。
⚠这些步骤之后,我尝试运行webdev serve
命令。我收到此错误消息:
webdev failed with an unexpected exception.
Unable to spawn isolate: file:///C:/Users/marco/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/analyzer-0.32.3/lib/src/dart/analysis/library_context.dart:96:34: Error: Can't return a value from a void function.
return appendLibraryFiles(targetLibrary);
^
❔您是否也发现了相同的问题?我该如何解决这个问题?
谢谢!
答案 0 :(得分:2)
SDK 2.0.0-dev.69.1出现问题-请参见this announcement。我不确定是否相关,但是您可能需要等待SDK的下一个版本,或降级到2.0.0-dev.69.0。