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-element importing polymer-element from different package difficult #13684

Closed
DartBot opened this issue Sep 30, 2013 · 3 comments
Closed
Labels
closed-duplicate Closed in favor of an existing report

Comments

@DartBot
Copy link

DartBot commented Sep 30, 2013

This issue was originally filed by @zoechi


What steps will reproduce the problem?
1.
I have a package "elements_a" with custom polymer-elements, from which I import/use some widgets in my web app "dartclient".
A polymer-element in package "elements_a" imports package "elements_b" which also contains custom polymer-elements.

dartclient - web/index.html:
<head>
<link rel="import" href="packages/elements_a/my_login.html">
</head>

elements_a - lib/my_login.html
<link rel="import" href="package/elements_b/bs_dropdown.html">
<polymer-element name="bwu-login">
  <template>
    <bs-dropdown>
      <div class="dropdown">
...
      </div>
    </bs-dropdown>
  </template>
  <script ...></script>
</polymer-element>

elements_b - lib/bw_dropdown.html
<polymer-element name="bs-dropdown">
  <template>
...
  </templage>
  <script ...></script>
</polymer-element>
<
2.
Failed to load resource: the server responded with a status of 404 (Not Found)
  http://localhost:3030/dartclient/web/packages/elements_a/package/elements_b/bs_dropdown.html
3.

But it doesn't make much sense to have the client apps name in the component.

What is the expected output? What do you see instead?
Should work

What version of the product are you using? On what operating system?
Dart Editor 0.7.6_r27991
Debian Linux x64 jessie

Please provide any additional information below.

What works is
elements_a - lib/my_login.html
<link rel="import" href="/dartclient/web/packages/elements_b/bs_dropdown.html">
<polymer-element name="bwu-login">
...

@sethladd
Copy link
Contributor

Added Area-Polymer, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Oct 2, 2013

This comment was originally written by @zoechi


Additional info:
My workaround using an absolute path doesn't work with dart2js so this will becomes a blocker anytime soon.

@sigmundch
Copy link
Member

Thanks for the bug report! I believe this is the same as issue #12867, marking as duplicate.


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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

4 participants