Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polymer transformer does not complain about missing entry points, when compiles to JS #19363

Closed
andersjohnsen opened this issue Jun 11, 2014 · 4 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-duplicate Closed in favor of an existing report P1 A high priority bug; for example, a single project is unusable or has many test failures

Comments

@andersjohnsen
Copy link

Take for example the todomvc sample. If I remove the

transformers:

  • polymer:
        entry_points: web/index.html

lines from the pubspec, I get the following when using 'Run in Dartium':

Breaking on exception: Missing initialization of polymer elements. Please check that the list of entry points in your pubspec.yaml is correct. If you are using pub-serve, you may need to restart it.

But if I use 'Run as JavaScript', I get no error or warnings, and the page renders fine (except for no functionality).

@sigmundch
Copy link
Member

Added Duplicate label.
Marked as being merged into #16190.

@DartBot
Copy link

DartBot commented Aug 9, 2014

This comment was originally written by giancarloser...@gmail.com


I have the same problem:

"Breaking on exception: Missing initialization of polymer elements. Please check that the list of entry points in your pubspec.yaml is correct. If you are using pub-serve, you may need to restart it."

My code is very simple, i just starting

pubspect.yaml

name: polymerexample2
description: A sample web application
dependencies:
  polymer: ">=0.12.0 <0.13.0"
  core_elements: ">=0.1.0 <0.2.0"
  paper_elements: ">=0.1.0 <0.2.0"

Html:
<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Polymerexample2</title>
    
    <script src="packages/web_components/platform.js"></script>
    <script src="packages/web_components/dart_support.js"></script>
    <link rel="import" href="packages/paper_elements/paper_input.html">
    <link rel="stylesheet" href="polymerexample2.css">
  </head>
  <body unresolved>
    <h1>Hidrográfica 3d</h1>
    
    <paper-input label="Type something..."></paper-input>
    
    <script type="application/dart">export 'package:polymer/init.dart';</script>
  </body>
</html>

Any suggest?

@DartBot
Copy link

DartBot commented Aug 9, 2014

This comment was originally written by giancarlos...@gmail.com


I solved it!

Just i need put this line in pubspec.yaml

transformers:

  • polymer:
        entry_points: web/<My HTML>.html

@andersjohnsen andersjohnsen added Type-Defect P1 A high priority bug; for example, a single project is unusable or has many test failures area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-duplicate Closed in favor of an existing report labels Aug 9, 2014
@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-archive/polymer-dart#211.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-duplicate Closed in favor of an existing report P1 A high priority bug; for example, a single project is unusable or has many test failures
Projects
None yet
Development

No branches or pull requests

3 participants