-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Description
Vue.js version
2.1.6
Steps to reproduce
Using the standalone build; vue.common.js
Running following gulp task:
gulp.task('scripts', function(){
return gulp.src('renderer/js/renderer.js')
.pipe(plumber({
errorHandler: function (error) {
console.log(error.message);
this.emit('end');
}}))
.pipe(browserify())
.pipe(concat('main.min.js'))
.pipe(gulp.dest('renderer/bundle/js/'))
.pipe(browserSync.reload({stream:true}))
});
What is happening?
Parsing file ...\node_modules\vue\dist\vue.common.js: Line 6460: Invalid regular expression
And getting Failed to mount component: template or render function not defined. (found in root instance)
in browser. Which probably means that Vue didn't get built correctly in the gulp task.
Checking vue.common.js im suspecting it's the following line @6459:
var regexEscapeRE = /[-.*+?^${}()|[\]/\\]/g;
"Debugs" attempted
Commenting the whole line out seems to remove both the gulp error and the browser error and makes vue run.
Adding an extra \
right after [\] like so:
var regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g;
also seems to remove gulp error, browser error and makes vue run.
Metadata
Metadata
Assignees
Labels
No labels