Closed Georges0013 closed 9 years ago
Mind running bower install
and trying gulp
again? Looks like the bower components are missing. Were there any errors when scaffolding?
I recommend that use npm cache clean
and then reinstall and build. It might be related to https://github.com/PolymerElements/polymer-starter-kit/issues/101#issuecomment-109605103
Closing for the lack of response. If you're still having this issue please report it at the PSK repo.
Problem: ERROR finding paper-drawer-panel.css paper-item-shared.css paper-menu-shared.css page.js
Solution: The gulpfile.js -> task copy needs to be corrected. The bower_components must be copied from the ./app directory.
OLD
var bower = gulp.src([
'bower_components/**/*'
]).pipe(gulp.dest('dist/bower_components'));
NEW
var bower = gulp.src([
'app/bower_components/**/*'
]).pipe(gulp.dest('dist/bower_components'));
bower_components shouldn't be in the app directory. Did you add a .bowerrc or do something to move them there?
@robdodson Thanks.
I started with the https://github.com/PolymerElements/polymer-starter-kit/releases/download/v1.0.3/polymer-starter-kit-light-1.0.3.zip which indeed includes a .bowerrc { "directory": "app/bower_components" } and the folder ./bower_components exists in ./app/ - The polymer-starter-kit-1.0.3.zip does not include a .bowerrc
I then used/modified the gulp script of the https://github.com/PolymerElements/polymer-starter-kit/releases/download/v1.0.3/polymer-starter-kit-1.0.3.zip The reason for this 2-step approach is a known issue, being that the complete polymer-starter-kit-1.0.3.zip does not work very well yet on a Windows dev machine (npm installs, such as web-component-tester failing, and some gulp tasks failing, mostly related to vulcanize) but I was able to resolve them one step at a time.
What should I do now? Putting ./bower_components in ./ or ./app/ ? I would like to stay as close as possible to the structure of the polymer-starter-kit.
cc/ @addyosmani
Hi !
I have 2 problems with my first initialization with yo polymer. My specs :
So first, after
yo polymer
, when I put agulp serve
, I've got this :I've patched this with this workaround : https://github.com/PolymerElements/polymer-starter-kit/issues/110#issuecomment-108185250 even with the latest generator-polymer.
Furthermore, I'm getting this error when I throw a build with
gulp
:but then, I can't find a solution about that ...
P.S.: I'm new with in the Polymer universe, and I'm very exciting to use it ! :)