dart-archive / web-components

Dart package providing the web components platform polyfills
https://pub.dartlang.org/packages/web_components
BSD 3-Clause "New" or "Revised" License
18 stars 10 forks source link

html_import_annotation error #55

Open robbass opened 7 years ago

robbass commented 7 years ago

Hi, Starting from a project that contains polymer elements

name: 'project_name'
version: 0.0.1
description: A web app built using polymer.dart.

dependencies:
  browser: ^0.10.0
  polymer_elements: ^1.0.0-rc.8
  polymer: ^1.0.0-rc.15
  web_components: ^0.12.0
  css_animation:

transformers:
- polymer:
    entry_points: web/index.html
- $dart2js:
    minify: true

Debugging with web/index.html inside the project, everything works, no issues.

I'm trying to use it like a package from another project for testing

name: project_test
version: 0.0.1
description: A minimal web app for the developer that doesn’t want to be confused by too much going on.
environment:
  sdk: '>=1.9.0 <2.0.0'
dependencies:
  browser: ^0.10.0
  route_hierarchical: '>=0.5.0 <0.7.0'
  sass: '>=0.4.0 <0.5.0'
dev_dependencies:
  norax_display:
    path: ../project_name/

transformers:
- polymer:
    entry_points: web/Display.html
- $dart2js:
    minify: true
    commandLineOptions:
    - --trust-type-annotations
    - --trust-primitives

Debugging with web/Display.html i get this error

'package:web_components/html_import_annotation.dart': error: line 23 pos 43: unterminated string literal
ef =ht    et   t  csaeEo   rm( e,a'menth);

I'm not an expert, so i think i'm doing something wrong importing projects