name: Woven Pagesdescription: The Woven platform.dependencies: web_components: any mongo_dart: any
Unable to open file: C:/Users/Samer/Documents/GitHub/woven/web/packages/mongo_dart/mongo_dart.dart'file:///C:/Users/Samer/Documents/GitHub/woven/web/page.dart': Error: line 1 pos 1: library handler failed#import("package:mongo_dart/mongo_dart.dart");
import("package:mongo_dart/mongo_dart.dart");
#import("package/mongo_dart/mongo_dart.dart");
import 'packages/mongo_dart/mongo_dart.dart' as js;
I had the same problem, my solution was the to change ':' to '/'
import("package:mongo_dart/mongo_dart.dart");to
#import("package/mongo_dart/mongo_dart.dart");Or try:
import 'packages/mongo_dart/mongo_dart.dart' as js;
Em quarta-feira, 31 de outubro de 2012 12h07min33s UTC-2, Samer Ali escreveu:Hello,I have this pubspec.yaml
name: Woven Pagesdescription: The Woven platform.dependencies:web_components: anymongo_dart: any
then i run Tools > Pub Install, the operation completes successively.now on the editor i get this: http://screencast.com/t/327egelXrMTiWhen i run the application i get the following error:dart --enable-checked-mode web\page.dart
Unable to open file: C:/Users/Samer/Documents/GitHub/woven/web/packages/mongo_dart/mongo_dart.dart'file:///C:/Users/Samer/Documents/GitHub/woven/web/page.dart': Error: line 1 pos 1: library handler failed#import("package:mongo_dart/mongo_dart.dart");
I was Able to resolve that issues by going to my user profileat C:\Users\USERNAME\AppData\Roaming and delete the folder Pub from there.
Are packages supposed to be visible from a lib/ directory or not? It causes no warnings errors when I import it from the library file, but the module isn't visible from in any of the part's namespaces.