【发布时间】:2019-02-05 10:42:53
【问题描述】:
在关注教程时 - Angular-dart tutorial - Tour of Heroes - part 2
在使用 chrome 时在 Windows 10 中使用 IntelliJ IDEA,出现以下错误 -
[SEVERE] build_web_compilers|entrypoint on web/main.dart (cached):
Unable to find modules for some sources, this is usually the result of either a
bad import, a missing dependency in a package (or possibly a dev_dependency
needs to move to a real dependency), or a build failure (if importing a
generated file).
Please check the following imports:
import 'package:angular_app/app_component.css.shim.dart' as import0; from angular_app|lib/app_component.template.dart at 12:1
[SEVERE] Failed after 1.3s
Serving web on http://localhost:53323
我已经检查了多次,我已经替换了所有 - 5 个文件 - 即
lib/app_component.css, lib/app_component.dart, lib/app_component.html, lib/src/hero.dart & lib/src/mock_heroes.dart 来自 Review the app structure 但我仍然收到上述错误 & -
我找不到任何
app_component.template.dart使用 IntelliJ 在路径中查找 (Ctrl+Shift+F) 也找不到导入的
package:angular_app/app_component.css.shim.dart或shim的任何实例我已尝试删除构建并重新构建。
我还使用 windows 包管理器重新安装了 dart 2.1.0 并在 IntelliJ IDEA 设置/Dart 中相应地更改了 dart-sdk 的位置,因为在短时间内我收到了 dart-sdk 错误,但是是固定的。
这是我第一次在 stacksoverflow 上提出问题,但我检查了类似的问题,无法解决该问题。
【问题讨论】:
标签: dart angular-dart