My first DART polymer project: No execution / testing possible, nothing works? -
i have created polymer project. generates default app reverses text entered input field. works.
then tried add core-header-panel. copied code description page index.html file of 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 displayed web page. 2 say:
custom element found in document body without "unresolved" attribute on or 1 of parents.
i have inserted unresolved attribute after body tag. not understand why error not go away.
the third messages is:
custom element name core-toolbar not found
i added line
<link rel="import" href="packages/core_elements/core_toolbar.html">
but error message did not go away.
finally outcommented complete core-header-panel , nevertheless page in dartium still shows "hello world" , error messages.
i'm lost here. dart editor / dartium "development system" seems useless. can not test simplest things. doing wrong? how work system???
btw: same behaviour when try run javascript in firefox browser ...
you need add import core-toolbar
, core-header-panel
.
you need add dependency pubspec.yaml
file.
dependencies: core_elements:
otherwise can't see wrong.
if doesn't work, please try run pub cache repair
in project directory (from command line). if still doesn't work please add complete content of pubspec.yaml
, pubspec.lock
, index.html
question.
Comments
Post a Comment