-
Notifications
You must be signed in to change notification settings - Fork 1.7k
pub serve fails with 'Could not resolve dart:core' #22099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This error is coming from the code_transformers package. Removed Area-Pub label. |
This comment was originally written 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" |
This issue has been moved to dart-archive/code_transformers#23. |
[Personal experience] |
This issue was originally filed by @joelrich
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: