Search code examples
dartangular-dartdart-pub

Missing Package in AngularDart


I try to use AngularDart according to the AngularDart.com Tutorial.
My pubspec.yaml:

name: test
description: A sample web application
dependencies:
  angular: "1.0.0"
  web_components: ">=0.8.0 <0.9.0"
  browser: ">=0.10.0+2 <0.11.0"
transformers:
- angular

Always when i run pub get, i get the following error:

--- 09:24:30 Running pub get on D:\Bachelorarbeit_Projekt\Source\notices ... --- Resolving dependencies... Got dependencies! Precompiling dependencies... Loading source assets... Loading di/module_transformer and smoke/src/default_transformer transformers... Transformer library "package:di/module_transformer.dart" not found.

I tried with Eclipse plugin and Dart Editor. Have no more ideas...


Solution

  • pub cache repair can't fix a broken cache in the case of a missing pubspec.yaml file.
    In this case delete the folder of the faulty package within the pub cache.
    This is a known issue (see http://dartbug.com/21418 and http://dartbug.com/21408)