-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
meta is undefined #31
Comments
I'm not getting this error, can you provide some more information? |
I couldn't reproduce this on my personal computer tonight so I'll try it on my work computer again tomorrow which is the original computer I had the problem on. |
I spent some time trying to track down the issue again. It seems to only be happening when I use a custom registry. I have a very basic custom registry which inherits from undertaker-registry. 'use strict';
var util = require('util');
var DefaultRegistry = require('undertaker-registry');
module.exports = BuildTasksRegistry;
util.inherits(BuildTasksRegistry, DefaultRegistry);
function BuildTasksRegistry() {
DefaultRegistry.call(this);
this.set('clean', function(done) {
console.log('cleaning');
done();
});
} My gulpfile is also very simple 'use strict';
var gulp = require('gulp');
var BuildTasksRegistry = require('./gulp/BuildTasksRegistry.js');
var buildTasks = new BuildTasksRegistry();
gulp.registry(buildTasks); I can successfully run the command I'm using undertaker-registry version 0.0.3 When I step into gulp and therefore into undertaker I notice the assignment to var meta = metadata.get(task); Looking at the contents of the metadata module that's being used in the line above, I can see it's simply a new instance of a WeakMap being exported. However, that WeakMap instance has never had any keys set. Therefore Does it look like I'm doing anything wrong or do you know what the metadata section is supposed to actually do? |
Same error here |
@mikehaas763 can you please check out #25 - we have a new way of defining custom tasks (in an |
Specific commit 21cafaa |
@mikehaas763 pinging |
I believe this was closed by e7bf5b3 - Please reopen if changing to the |
I'm using latest in gulpjs/gulp#4.0. When I try to use any of the commands like
gulp --tasks
or when WebStorm tries to rungulp --tasks-json
I get an error.I can post the full stack trace if needed. This may just be a known issue because it's in the middle of development but I thought I'd at least get it logged in case not.
The text was updated successfully, but these errors were encountered: