-
Notifications
You must be signed in to change notification settings - Fork 42
Polymer 2.0 Starter Kit error #74
Comments
Just realised I was on a very old version of polymer-build. Latest release has breaking changes, for example |
You can still use split/rejoin, they are just used slightly differently now, eg: const gulp = require('gulp');
const polymerBuild = require('polymer-build');
const polymerProject = new polymerBuild.PolymerProject(require('./polymer.json'));
const streamSplitter = new polymerBuild.HtmlSplitter();
polymerProject.sources()
.pipe(streamSplitter.split())
// Do split work here...
.pipe(streamSplitter.rejoin());
.pipe(gulp.dest('build')); IIRC (last time I checked) each splitter can only be used once, so you have to create a new instance for multiple splitters. For a larger example, see the updated polymer custom-build script here: custom-build: gulpfile.js |
@jsilvermist Thanks for responding. I just realised that when i install the generator via npm install or run |
Not sure why you would be getting an old version, maybe try running:
Also, make sure you don't have an old version installed locally anywhere. |
@jsilvermist So this is pretty insane. I've done as you suggested but i keep getting this gulpfile
|
Oh wow you're right, this hasn't been tagged in a while, 2.0.1 is several many commits behind. I'll open an issue to tag a new release, in the meantime you can either just copy/paste the gulpfile from the link above, or you can install the master branch with npm using:
(Not entirely sure how this would affect updates however, maybe no updates, maybe an update per commit?) EDIT: Now that I think about it, opening a new issue was probably overkill... oh well haha |
Yeah, I noticed it was way out of date the other day too. Forgot to get around to posting an issue. |
@jsilvermist @stramel Thanks for confirming the issue guys! :) |
Any headway on this? The problem brought me here as well. It seems even when trying your recommended install @jsilvermist,,
and then typing the command
It's not even taking me through the "yo" walk through, it's just installing the Starter Kit. |
If you specify the template in the first command it won't take you through the menu so that is expected. We are still waiting on the PSK submodule to be updated to the latest but @FredKSchott did tag a more updated version of this project. |
Hi @stramel ,
Here's what the
Is the PSK Submodule holding this back or am I missing something? |
Hi,
I'm getting the following error when doing
gulp build
on a Polymer-2-starter-kit project,In bower_components/polymer/lib/legacy/polymer-fn.html: [could-not-load] - Unable to load import: Cannot read property 'forEach' of undefined
. Any idea what could be wrong? Thanks.The text was updated successfully, but these errors were encountered: