When I add this to my package.json to make Vue compatible with browserify:
"browser": {
"vue": "vue/dist/vue.common"
},
I get this error:
/usr/local/lib/node_modules/disc/node_modules/esprima-fb/esprima.js:6268
throw e;
^
Error: Line 6472: Invalid regular expression
at throwError (/usr/local/lib/node_modules/disc/node_modules/esprima-fb/esprima.js:2159:21)
at scanRegExp (/usr/local/lib/node_modules/disc/node_modules/esprima-fb/esprima.js:1343:13)
at parsePrimaryExpression (/usr/local/lib/node_modules/disc/node_modules/esprima-fb/esprima.js:2665:43)
at /usr/local/lib/node_modules/disc/node_modules/esprima-fb/esprima.js:5832:38
at trackLeftHandSideExpressionAllowCall (/usr/local/lib/node_modules/disc/node_modules/esprima-fb/esprima.js:5732:61)
at parsePostfixExpression (/usr/local/lib/node_modules/disc/node_modules/esprima-fb/esprima.js:2795:20)
at /usr/local/lib/node_modules/disc/node_modules/esprima-fb/esprima.js:5832:38
at parseUnaryExpression (/usr/local/lib/node_modules/disc/node_modules/esprima-fb/esprima.js:2859:16)
at /usr/local/lib/node_modules/disc/node_modules/esprima-fb/esprima.js:5832:38
at parseBinaryExpression (/usr/local/lib/node_modules/disc/node_modules/esprima-fb/esprima.js:2947:16)
When I add this to my
package.json
to make Vue compatible with browserify:I get this error:
This is the relevant gulp-part:
And this is the Vue-Code:
However, when I remove the first mentioned lines from package.json, disc works (but vue.js does not).