-
Notifications
You must be signed in to change notification settings - Fork 37
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
require('gulp-javascript-obfuscator') Spread Syntax error #22
Comments
Having same issue - tried to downgrade to version 0.18.1 of obfuscator - but it is still updating "chalk" to version 3.0.0 which contains the syntax error |
I found out last night if I downgrade with this after installing the gulp-javascript-obfuscator then the problem goes away. npm install javascript-obfuscator@0.18.1 |
@markarupert @Joanne16 Did you try javascript-obfuscator version 0.18.6? If the issue is reproducible under this version, could you share a code that caused this bug? I'll try to fix it. |
+-- gulp-javascript-obfuscator@1.1.6 Here is a snipet of the code causing the problem. It blows up on:
|
@zamotkin - Did this code help at all? |
I am having the same problem. no matter what I do. this is my package.json Package-lock.json and gulpfile.js //This is a really crude check for development mode. There is no way to const gulp = require('gulp'); const templateCache = require('gulp-angular-templatecache'); const build = require('./build.json'); gulp.task('clean', function () { gulp.task('html_dev', function (cb) { //Rebuild app.js file in assets.
}); //Rebuild app.js file in assets for production
}); //Watch for any js changes and re-run the js task if there is a change. //This task will start the node server using nodemon. //A dev task which will run all other tasks. //Compiles the entire project into one folder so it can be referenced
}); function installComponents() {
} |
Here is the error again $ gulp |
|
Guys, do you have Node.js 8 or above? |
New release with updated |
For years I have been using this. And today when I install it I am getting a spread syntax error.
D:\myproject\node_modules\javascript-obfuscator\node_modules\chalk\source\index.js:103
...styles,
^^^
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:511:25)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Module.require (module.js:466:17)
at require (internal/module.js:20:19)
at Object.call (D:\Users\Mark\WebstormProjects\ak2\node_modules\javascript-obfuscator\dist\webpack:\JavaScriptObfuscator\external "chalk":1:18)
The text was updated successfully, but these errors were encountered: