javascript - Gulp.js : unexpected token (23:12) while parsing -


i'm tryin use gulp.js in project , confronted problems :

[08:57:25] { [syntaxerror: unexpected token (23:12) while parsing c:\users\user\ desktop\responsive\components\scripts\fake_b1eb0d8e.js]   plugin: 'gulp-browserify',   showstack: false,   name: 'syntaxerror',   message: 'unexpected token (23:12) while parsing c:\\users\\user\\desktop\\res ponsive\\components\\scripts\\fake_b1eb0d8e.js',   filename: undefined,   linenumber: undefined,   stack: 'syntaxerror: unexpected token (23:12) while parsing c:\\users\\user\\d esktop\\responsive\\components\\scripts\\fake_b1eb0d8e.js\n    @ stream.end (c: \\users\\user\\desktop\\responsive\\node_modules\\gulp-browserify\\node_modules\ \browserify\\node_modules\\insert-module-globals\\index.js:71:21)\n    @ _end ( c:\\users\\user\\desktop\\responsive\\node_modules\\gulp-browserify\\node_module s\\browserify\\node_modules\\insert-module-globals\\node_modules\\through\\index .js:65:9)\n    @ stream.stream.end (c:\\users\\user\\desktop\\responsive\\node_ modules\\gulp-browserify\\node_modules\\browserify\\node_modules\\insert-module- globals\\node_modules\\through\\index.js:74:5)\n    @ transform.onend (c:\\user s\\user\\desktop\\responsive\\node_modules\\gulp-browserify\\node_modules\\throu gh2\\node_modules\\readable-stream\\lib\\_stream_readable.js:523:10)\n    @ tra nsform.g (events.js:199:16)\n    @ transform.emit (events.js:129:20)\n    @ c: \\users\\user\\desktop\\responsive\\node_modules\\gulp-browserify\\node_modules\ \through2\\node_modules\\readable-stream\\lib\\_stream_readable.js:965:16\n    t process._tickcallback (node.js:355:11)' } 

i had same problem initially, before realised problem based on smooth scrolling code snippet css-tricks.com, first line of code

a[href*="#"]:not([href="#"])').click(function()

now, selector not valid. # special char , needs escaped a[href*=\\#]:not([href=\\#])

see https://api.jquery.com/category/selectors/

hope can somewhere


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -