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

Invalid regular expression with vue.js and gulp-requirejs #4445

Closed
sn00pee opened this issue Dec 12, 2016 · 1 comment
Closed

Invalid regular expression with vue.js and gulp-requirejs #4445

sn00pee opened this issue Dec 12, 2016 · 1 comment

Comments

@sn00pee
Copy link

sn00pee commented Dec 12, 2016

similar to #4344
I get an error:

Parse error using esprima for file: /.../bower_components/vue/dist/vue.js
Error: Line 6386: Invalid regular expression
In module tree:
    src/js/main.js
      loadmore

    at /.../node_modules/gulp-requirejs/node_modules/requirejs/bin/r.js:23419:47

Line 6386:
var regexEscapeRE = /[-.*+?^${}()|[\]/\\]/g;

when using vue.js with requirejs
Doesn't happen when used with vue.min.js

Vue.js version

2.1.4

@sn00pee sn00pee changed the title Invalid regular expression with vue.js and requirejs Invalid regular expression with vue.js and gulp-requirejs Dec 12, 2016
@yyx990803
Copy link
Member

This is likely a bug in requirejs rather than Vue.js.

yyx990803 pushed a commit that referenced this issue Jan 5, 2017
* fiz regular expression

* fix regular expression
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