Git Product home page Git Product logo

Comments (8)

chmontgomery avatar chmontgomery commented on July 17, 2024

If you figure out a solution I would accept a pull request.

from gulp-shrinkwrap.

nicky-lenaers avatar nicky-lenaers commented on July 17, 2024

I'm not too familiar with writing the actual plugins, but I'll keep an eye out!

from gulp-shrinkwrap.

chmontgomery avatar chmontgomery commented on July 17, 2024

@NickyL can you try v2.0.0 and see if that fixes your problem? Thanks!

from gulp-shrinkwrap.

nicky-lenaers avatar nicky-lenaers commented on July 17, 2024

I'll give it a go tomorrow. I'll let you know!

from gulp-shrinkwrap.

nicky-lenaers avatar nicky-lenaers commented on July 17, 2024

@chmontgomery I still get the exact same error after updating to v2.0.1. Any ideas?

from gulp-shrinkwrap.

chmontgomery avatar chmontgomery commented on July 17, 2024

can you paste in the contents of your package.json? And also the version of gulp you're using?

from gulp-shrinkwrap.

nicky-lenaers avatar nicky-lenaers commented on July 17, 2024

gulp v 3.8.11 (both global and local)

My relevant package.json:

"devDependencies": {
    "dedupe": "1.0.0",
    "gulp": "3.8.11",
    "gulp-angular-htmlify": "2.1.1",
    "gulp-autoprefixer": "2.0.0",
    "gulp-concat": "2.4.2",
    "gulp-if": "1.2.5",
    "gulp-imagemin": "^2.2.1",
    "gulp-jshint": "1.9.0",
    "gulp-livereload": "3.0.2",
    "gulp-minify-css": "0.5.1",
    "gulp-minify-html": "0.1.8",
    "gulp-plumber": "0.6.6",
    "gulp-processhtml": "1.0.2",
    "gulp-rename": "^1.2.0",
    "gulp-sass": "1.3.3",
    "gulp-shrinkwrap": "^2.0.1",
    "gulp-sourcemaps": "1.5.0",
    "gulp-typescript": "2.4.2",
    "gulp-uglify": "1.0.2",
    "gulp-util": "3.0.1",
    "merge2": "^0.3.1",
    "morgan": "1.5.1",
    "node-sass": "2.0.1",
    "yargs": "1.3.3"
  },
  "dependencies": {
    "body-parser": "1.10.0",
    "express": "4.10.6",
    "mongoose": "3.8.23"
  }

from gulp-shrinkwrap.

chmontgomery avatar chmontgomery commented on July 17, 2024

@NickyL Using your package.json and gulp task I'm seeing a different error message than you but I think it may be related:

[22:13:22] Using gulpfile ~/Projects/test/1/gulpfile.js
[22:13:22] Starting 'shrinkwrap'...
[22:13:22] Build Successful!
[22:13:22] 'shrinkwrap' errored after 5.65 ms
[22:13:22] TypeError: Object #<Object> has no method 'on'
    at DestroyableTransform.Stream.pipe (stream.js:65:8)
    at Gulp.<anonymous> (/Users/montgomeryc/Projects/test/1/gulpfile.js:9:7)
    at module.exports (/Users/montgomeryc/Projects/test/1/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7)
    at Gulp.Orchestrator._runTask (/Users/montgomeryc/Projects/test/1/node_modules/gulp/node_modules/orchestrator/index.js:273:3)
    at Gulp.Orchestrator._runStep (/Users/montgomeryc/Projects/test/1/node_modules/gulp/node_modules/orchestrator/index.js:214:10)
    at Gulp.Orchestrator.start (/Users/montgomeryc/Projects/test/1/node_modules/gulp/node_modules/orchestrator/index.js:134:8)
    at /Users/montgomeryc/.nvm/v0.10.33/lib/node_modules/gulp/bin/gulp.js:129:20
    at process._tickCallback (node.js:419:13)
    at Function.Module.runMain (module.js:499:11)
    at startup (node.js:119:16)
    at node.js:906:3

The problem has to do with your gulpfile.js. gutil.log is not meant to be called as part of a stream. Either remove the pipe to gutil or use a package like through2 and put the call to gutil inside there. If you're still seeing an error message, make sure to start fresh by doing the following (assuming you're in a linux/unix env):

rm -r node_modules
npm cache clean
npm install

from gulp-shrinkwrap.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.