If I include a sub element in a view fragment, which depends on another component (like px-card), then in the built package subelement's dependency cannot resolve.
Start a static file server in the dist/public folder
Expected result
The application up and running in a correct way with no error in the console log.
Current result
The application halts and the following error can be seen in the console:
GET http://localhost:8000/bower_components/px-card/px-card.html 404 (Not Found)
Uncaught DOMException: Failed to execute 'registerElement' on 'Document': Registration failed for type 'dom-module'. A type with that name is already registered.
at http://localhost:8000/bower_components/polymer/polymer-micro.html:449:10
at http://localhost:8000/bower_components/polymer/polymer-micro.html:464:2
Context
If I include a sub element in a view fragment, which depends on another component (like px-card), then in the built package subelement's dependency cannot resolve.
Process
polymer.json
gulp dist
to make a distributable versiondist/public
folderExpected result
The application up and running in a correct way with no error in the console log.
Current result
The application halts and the following error can be seen in the console: