My first DART polymer project: No execution / testing possible, nothing works?

Tina Hildebrandt

I have created a polymer project. It generates a default app which reverses text entered into an input field. This works.

Then I tried to add a core-header-panel. I copied the code from the description page into the index.html file of the project:

<body unresolved fullbleed layout vertical>
  <core-header-panel flex>
    <core-toolbar>
      <div>Hello World!</div>
    </core-toolbar>
  </core-header-panel>

  <main-app>
  </main-app>

  <script type="application/dart">export 'package:polymer/init.dart';</script>
</body>

This gets me 3 warnings on the displayed web page. Two say:

Custom element found in document body without an "unresolved" attribute on it or one of its parents.

I have inserted an unresolved attribute after the body tag. I do not understand why the error does not go away.

The third messages is:

custom element with name core-toolbar not found

I added a line

<link rel="import" href="packages/core_elements/core_toolbar.html">

but the error message did not go away.

Finally I outcommented the complete core-header-panel and nevertheless the page in Dartium still shows "Hello world" and all the error messages.

I'm lost here. The DART editor / Dartium "development system" seems to be useless. I can not even test the simplest things. What am I doing wrong? How do you work with this system???

BTW: I get exactly the same behaviour when I try to run this as Javascript in Firefox browser ...

Tina Hildebrandt

Meanwhile I found a solution by accident. The problem was that whatever I changed in the sources the DART editor always transfered the initial errornous file to the browser, or at least this is what it looks like.

The problem disappeared when I switched to another polymer project which I had used as an initial tutorial project, run that one and went back to the above project. Suddenly the browsers were able to display the changed files.

Looks for me like an ugly bug in the DART editor.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Polymer Dart Testing with 1.0

From Dev

Polymer Dart Testing with 1.0

From Dev

Is it possible to render a List<Element> in Polymer.dart?

From Dev

Nothing inside my $(document).ready works

From Dev

Dart Polymer 1.0 - Two-way binding works?

From Dev

is it possible simplify my logic on dart?

From Dev

Is it possible to set my EditText to Invisible if the value is nothing or ""?

From Dev

is it possible to publish matching getter and setter properties in polymer.dart?

From Dev

Getting error converting dart2js on polymer project

From Dev

Making my first project in java

From Dev

Testing my First Plugin - Script not loading WordPress

From Dev

Android view.animate() works different and wrong after first execution

From Dev

My script works only for the first class

From Dev

only the first line of my javascript code works

From Dev

How do I specificy the order of execution for methods in my testing?

From Dev

When testing react project npm test works but jest doesn't

From Dev

Polymer Dart @initMethod not executing

From Dev

removing polymer elements in dart

From Dev

Dart Polymer application as component?

From Dev

Dart/Polymer loading screen?

From Dev

Polymer Dart as a SPA framework

From Dev

Polymer Dart - Multiple View

From Dev

Polymer dart and styling

From Dev

conditional CSS in dart polymer

From Dev

Dart Polymer conditional template

From Dev

Graph libraries with dart and polymer

From Dev

Debuging Angular and Polymer dart

From Dev

Dart enum - Polymer

From Dev

Polymer Dart @initMethod not executing