-
Notifications
You must be signed in to change notification settings - Fork 11
pub serve fails with 'Could not resolve dart:core' #23
Comments
<img src="https://avatars.githubusercontent.com/u/4865287?v=3" align="left" width="48" height="48"hspace="10"> Comment by lrhn |
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3 This error is coming from the code_transformers package. Removed Area-Pub label. |
<img src="https://avatars.githubusercontent.com/u/405837?v=3" align="left" width="48" height="48"hspace="10"> Comment by zoechi Similar in a Polymer project uild error: Dart VM version: 1.9.0-edge.43738 (Thu Feb 12 12:05:23 2015) on "linux_x64" |
For my project building with Loading source assets... package:analyzer/src/generated/engine.dart 2496 AnalysisContextImpl.recordResolveDartLibraryTaskResults package:analyzer/src/generated/engine.dart 2496 AnalysisContextImpl.recordResolveDartLibraryTaskResults Could not find asset polymer|lib/src/build/html_finalizer.dart. |
I observe same problem running https://github.com/angular/angular.dart.tutorial [Error from InjectorGenerator on tutorial|web/main.dart]: |
Same here |
Any suggestions on how to get around this? I am trying to study the Angular Dart Tutorial. Does this mean Angular generally will not work until this is resolved, or is there something particular to how code_transformers are used in the tutorial which causes the trouble. |
If you're just starting with Angular, I'd suggest with Angular 2 for Dart instead of Angular.dart which is the predecessor. |
Oh, Thanks so much. This must be what I was missing! On Sat, Dec 26, 2015 at 11:13 AM Günter Zöchbauer [email protected]
|
<img src="https://avatars.githubusercontent.com/u/4216919?v=3" align="left" width="96" height="96"hspace="10"> Issue by joelrich
Originally opened as dart-lang/sdk#22099
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Server should start. The following error:
{{{
$ pub serve
Loading source assets...
Loading liquid transformers...
Serving vdom_benchmark web on http://localhost:8080
[Error from Factory on vdom_benchmark|lib/benchmark.dart]:
Unable to resolve asset ID for "dart:core"
Build error:
Transform Factory on vdom_benchmark|lib/benchmark.dart threw error: <rethrow>
Caused by Could not resolve dart:core
0 AnalysisTask._safelyPerform (package:analyzer/src/generated/engine.dart:6762)
1 AnalysisTask.perform (package:analyzer/src/generated/engine.dart:6727)
2 AnalysisContextImpl._cacheDartResolutionData (package:analyzer/src/generated/engine.dart:2414)
3 AnalysisContextImpl._getDartResolutionData (package:analyzer/src/generated/engine.dart:3046)
4 AnalysisContextImpl._getDartResolutionData2 (package:analyzer/src/generated/engine.dart:3077)
5 AnalysisContextImpl.computeLibraryElement (package:analyzer/src/generated/engine.dart:1192)
6 ResolverImpl._performResolve.<anonymous closure>.<anonymous closure> (package:code_transformers/src/resolver_impl.dart:158)
7 MappedListIterable.elementAt (dart:_internal/iterable.dart:417)
8 ListIterable.toList (dart:_internal/iterable.dart:219)
9 ResolverImpl._performResolve.<anonymous closure> (package:code_transformers/src/resolver_impl.dart:159)
10 _RootZone.runUnary (dart:async/zone.dart:1155)
11 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:484)
12 _Future._propagateToListeners (dart:async/future_impl.dart:567)
13 _Future._completeWithValue (dart:async/future_impl.dart:358)
14 _Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:412)
15 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
16 _asyncRunCallback (dart:async/schedule_microtask.dart:48)
17 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:84)
18 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:131)
}}}
What version of the product are you using?
Pub 1.8.0
On what operating system?
OS X Yosemite
What browser (if applicable)?
Please provide any additional information below.
The text was updated successfully, but these errors were encountered: