<p dir="auto">I am not sure if it's a bug or I am doing something wrong (prob the latter).<br>
I am trying to manually instantiate a component named TodoService.</p>
<p dir="auto">everything is great on the first 2 steps</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" var myProvider = new Provider(TodosService, {
            useFactory: (todoAction, http, todoStatsModel, appStore) =&gt; {
                return new todoAction(TodoAction, http, todoStatsModel, appStore)
            },
            deps: [TodoAction, Http, TodoStatsModel, AppStore]
        });
        var injector =  Injector.resolveAndCreate([myProvider]);
"><pre class="notranslate"><code class="notranslate"> var myProvider = new Provider(TodosService, {
            useFactory: (todoAction, http, todoStatsModel, appStore) =&gt; {
                return new todoAction(TodoAction, http, todoStatsModel, appStore)
            },
            deps: [TodoAction, Http, TodoStatsModel, AppStore]
        });
        var injector =  Injector.resolveAndCreate([myProvider]);

</code></pre></div>
<p dir="auto">but blows up when I try to get it so I can use it</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="        var myTodoService = injector.get(TodosService)"><pre class="notranslate"><code class="notranslate">        var myTodoService = injector.get(TodosService)
</code></pre></div>
<p dir="auto">am I doing something wrong (possible on the get)?</p>
<p dir="auto">tx</p>
<p dir="auto">Sean.</p>
<p dir="auto">In the task 'modules/build.dart/pubspec' we do copy the pubspec to the build folder and launch <code class="notranslate">pub get</code> when the pubspec is modified.</p>
<p dir="auto">It might happen that a pubspec depends on a pubspec that has not been copied yet, see <a href="https://travis-ci.org/angular/angular/builds/39469889#L227" rel="nofollow">https://travis-ci.org/angular/angular/builds/39469889#L227</a>. Here, benchmark depends on facade but the pubspec of facade is not yet copied in the build folder which make the build fail.</p>