-
Notifications
You must be signed in to change notification settings - Fork 38
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
Cannot read property 'validateSync' of undefined and src folder not exist #2
Comments
Hello! It seems like the error comes from the javascript-obfuscator itself, as I don't have the code that throws this error in this package. |
Hi |
Thank you for your response. Would you please provide a code sample that causes the issue? I'll try to reproduce in on my machine. BTW, what gulp version do you use? |
Bumping the issue! @miadz Is there any news yet? |
Sorry, I was not here for a while. npm : [email protected] t5.js just have one line below var t = "t"; js_obfuse settting
var js_obfuse = { gulp task:
}); error $ gulp t5 C:\Users\myuser\AppData\Roaming\npm\node_modules\gulp-javascript-obfuscator\src\index.ts:100 |
gulp.task('task3', function () {
return gulp.src('./src/inject/temp2-min.js')
.pipe(javascriptObfuscator())
.pipe(concat('temp3-min.js'))
.pipe(gulp.dest('./src/inject'));
});
C:\Users\myuser\AppData\Roaming\npm\node_modules\gulp-javascript-obfuscator\src\index.ts:100
return getFromContainer(Validator).validateSync(schemaNameOrObject as Object, objectOrValidationOptions as ValidatorOptions);
^
TypeError: Cannot read property 'validateSync' of undefined
at Object.validateSync (C:\Users\myuser\AppData\Roaming\npm\node_modules\gulp-javascript-obfuscator\src\index.ts:100:43)
at new Options (C:\Users\myuser\AppData\Roaming\npm\node_modules\gulp-javascript-obfuscator\node_modules\javascript-obfuscator\dist\webpack:\src\options\Options.ts:179:55)
at Binding.dynamicValue (C:\Users\myuser\AppData\Roaming\npm\node_modules\gulp-javascript-obfuscator\node_modules\javascript-obfuscator\dist\webpack:\src\container\InversifyContainerFac
ade.ts:43:24)
at _resolveRequest (C:\Users\myuser\AppData\Roaming\npm\node_modules\gulp-javascript-obfuscator\node_modules\inversify\lib\resolution\resolver.js:39:30)
at Object.resolve (C:\Users\myuser\AppData\Roaming\npm\node_modules\gulp-javascript-obfuscator\node_modules\inversify\lib\resolution\resolver.js:65:12)
at C:\Users\myuser\AppData\Roaming\npm\node_modules\gulp-javascript-obfuscator\node_modules\inversify\lib\container\container.js:220:37
at Container._get (C:\Users\myuser\AppData\Roaming\npm\node_modules\gulp-javascript-obfuscator\node_modules\inversify\lib\container\container.js:211:44)
at Container.get (C:\Users\myuser\AppData\Roaming\npm\node_modules\gulp-javascript-obfuscator\node_modules\inversify\lib\container\container.js:176:21)
at InversifyContainerFacade.get (C:\Users\myuser\AppData\Roaming\npm\node_modules\gulp-javascript-obfuscator\node_modules\javascript-obfuscator\dist\webpack:\src\container\InversifyCont
ainerFacade.ts:99:34)
at Function.obfuscate (C:\Users\myuser\AppData\Roaming\npm\node_modules\gulp-javascript-obfuscator\node_modules\javascript-obfuscator\dist\webpack:\src\JavaScriptObfuscator.ts:24:63)
i check this "gulp-javascript-obfuscator" folder and src not exist.
then reinstall 'gulp-javascript-obfuscator' ,
but again i get that error.
i think problem is "utf-8" when reading file.
The text was updated successfully, but these errors were encountered: