logging - Why does importing browser_logging_handler from Dart Logging_handler package fails here? -


Here is my PSPCL file. I have run the pub several times.

  Name: LogTest Description: A sample polymer application dependency: logging: any logging_handlers: any polymer: '& gt; = 0.12.0 & lt; 0.13 0 Transformers: - Polymers: Entry Points: Web / LogStest. Html  

However, when I try to run my app it fails in the following message:

  Failed to load resource: The server responded with a status of 404 (not found) http: // localhost: 8081 / packages / logging_handlers / browser_logging_handlers.dart Loading an error file: Package: Logging_handlers / browser_logging_handlers.dart  

My dart file (logtest.dart):

  import package: p Imr / Polymer Dart's polymers; Import 'package: logging / logging dart'; Import 'package: logging_handlers / browser_logging_handlers.dart'; Zero main () {polymer.initPolymer (). Run (() {polymer.Polymer.onReady.then ((_) {// loggie.attachXLoggerUi ();});}); }  

and html file (logtest.html):

  & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Meta name = "viewport" content = "width = device-width, initial-scale = 1.0" & gt; & Lt; Title & gt; Sample App & lt; / Title & gt; & Lt ;! - Include web_components polyfills with support for dart - & gt; & Lt; Script src = "packages / web_components / platform.js" & gt; & Lt; / Script & gt; & Lt; Script src = "packages / web_components / dart_support.js" & gt; & Lt; / Script & gt; & Lt ;! - Import Click-Counter - & gt; & Lt; Link rel = "import" href = "clickcounter.html" & gt; & Lt; Link rel = "stylesheet" href = "logtest.css" & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H1 & gt; LogTest & lt; / H1> & Lt; P & gt; Hello World! & Lt; / P & gt; & Lt; Div id = "sample_container_id" & gt; & Lt; Click-count calculation = "5" & gt; & Lt; / Click-counter & gt; & Lt; / Div & gt; & Lt ;! - Bootstrap polymer - & gt; & Lt; Script type = "application / dir" src = "logtest.dart"> & Lt; / Script & gt; & Lt; Script src = "packages / browser / dart.js" & gt; & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

It looks like pub service does not recognize changes Link in pubspec.yaml file or in additional package directory. There is a button to prevent pub service in the output view pub service . The next time you launch the app, the pub service will be launched automatically again.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -