Skip to content
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

Object release has no method 'on' #111

Closed
arolson101 opened this issue May 9, 2015 · 1 comment
Closed

Object release has no method 'on' #111

arolson101 opened this issue May 9, 2015 · 1 comment

Comments

@arolson101
Copy link

In the readme where it says

gulp.task('scripts', function() {
    var tsResult = tsProject.src() // instead of gulp.src(...)
        .pipe(ts(tsProject));

    return tsResult.js.pipe('release');
});

Should it be this?

    return tsResult.js.pipe(gulp.dest('release'));

Because I get this error otherwise:

[10:35:57] TypeError: Object release has no method 'on'
    at CompileStream.Readable.pipe (_stream_readable.js:494:8)
    at Gulp.gulp.task.gulp.src.pipe.typescript.module (/Users/aolson/Developer/updraft/Gulpfile.js:19:24)
    at module.exports (/Users/aolson/Developer/updraft/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7)
    at Gulp.Orchestrator._runTask (/Users/aolson/Developer/updraft/node_modules/gulp/node_modules/orchestrator/index.js:273:3)
    at Gulp.Orchestrator._runStep (/Users/aolson/Developer/updraft/node_modules/gulp/node_modules/orchestrator/index.js:214:10)
    at Gulp.Orchestrator.start (/Users/aolson/Developer/updraft/node_modules/gulp/node_modules/orchestrator/index.js:134:8)
    at /usr/lib/node_modules/gulp/bin/gulp.js:121:20
    at process._tickCallback (node.js:419:13)
    at Function.Module.runMain (module.js:499:11)
    at startup (node.js:119:16)

/Users/aolson/Developer/updraft/node_modules/gulp-typescript/release/output.js:59
                    file.skipPush = !file.original.gulp;
                                                  ^
TypeError: Cannot read property 'gulp' of undefined
    at Output.addOrMergeFile (/Users/aolson/Developer/updraft/node_modules/gulp-typescript/release/output.js:59:51)
    at Output.write (/Users/aolson/Developer/updraft/node_modules/gulp-typescript/release/output.js:35:14)
    at ProjectCompiler.inputDone (/Users/aolson/Developer/updraft/node_modules/gulp-typescript/release/compiler.js:57:33)
    at CompileStream.end (/Users/aolson/Developer/updraft/node_modules/gulp-typescript/release/main.js:52:31)
    at DestroyableTransform.onend (/Users/aolson/Developer/updraft/node_modules/gulp-typescript/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:523:10)
    at DestroyableTransform.g (events.js:180:16)
    at DestroyableTransform.emit (events.js:117:20)
    at /Users/aolson/Developer/updraft/node_modules/gulp-typescript/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:965:16
    at process._tickCallback (node.js:419:13)
@ivogabe ivogabe closed this as completed in 77a9728 May 9, 2015
@ivogabe
Copy link
Owner

ivogabe commented May 9, 2015

Thanks for reporting, that's indeed a mistake. Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants