deepak1556 / gulp-browserify

Bundle modules with BrowserifyJS
MIT License
195 stars 45 forks source link

TypeError: Object has no method 'replace' #16

Open ThomasDeutsch opened 10 years ago

ThomasDeutsch commented 10 years ago

I am able to browserify my app, but with gulp-browserify ( using the example gulp-configuration ), i get:

gulperror

My app.js is simply "var x = 1;" It seems that browserify can not work with the stream.

i am using:

deepak1556 commented 10 years ago

hmm weird, coz i tried the same thing and it works well. can you post your gulpfile?

ThomasDeutsch commented 10 years ago

var gulp = require('gulp'); var browserify = require('gulp-browserify'); var concat = require('gulp-concat');

gulp.task('scripts', function() { //single entry point to browserify gulp.src(['./src/app.js']) .pipe(browserify({ insertGlobals : true, debug : true })) .pipe(concat('dest.js')) .pipe(gulp.dest('./build')) });

gulp.task('default', function() { gulp.run('scripts'); });

deepak1556 commented 10 years ago

not sure wats causing the problem. But you had problem with npm i gulp-browserify yesterday right? how did you solve it?

ThomasDeutsch commented 10 years ago

I solved the issue by unchecking the Read-Only Attribute on my C:\Users Folder.

deepak1556 commented 10 years ago

@Dashed any thoughts on this problem?

deepak1556 commented 10 years ago

@ThomasDeutsch can you try with the latest version and see if the error still persists?

shuhei commented 10 years ago

@deepak1556 This issue can be closed because the issuer said it was solved and gulp won't work in readonly folder anyway.