I tried using the 2.0-preview branch to see if I could get Polymer-CLI to correctly bundle the shop demo. It does not appear to work and when loaded, an error that Polymer is undefined is received.
Reproduce
To reproduce this issue, I did the following (assuming Polymer-CLI and bower already installed)
git clone https://github.com/Polymer/shop.git
cd shop
git checkout 2.0-preview
bower install
polymer build
polymer serve build/bundled
Open localhost:8000 in Chrome.
Open the debug console and notice the error.
Workaround
The shop demo works correctly if you just run polymer serve and don't use the bundled version.
I tried using the
2.0-preview
branch to see if I could get Polymer-CLI to correctly bundle the shop demo. It does not appear to work and when loaded, an error thatPolymer
is undefined is received.Reproduce
To reproduce this issue, I did the following (assuming Polymer-CLI and bower already installed)
git clone https://github.com/Polymer/shop.git
cd shop
git checkout 2.0-preview
bower install
polymer build
polymer serve build/bundled
localhost:8000
in Chrome.Workaround
The shop demo works correctly if you just run
polymer serve
and don't use the bundled version.Versions Used
Polymer-CLI:
0.18.0-alpha.8
Node:6.9.2
Browser:Chrome 55.0.2883.87