Error: Cannot read property 'ecmaFeatures' of undefined
See original GitHub issueG:\sites\flip-game\node_modules\javascript-obfuscator\dist\webpack:\JavaScriptObfuscator\src\EspreeFacade.ts:82 throw new Error(errorMessage); ^ Error: Cannot read property 'ecmaFeatures' of undefined at Function.value (G:\sites\flip-game\node_modules\javascript-obfuscator\dist\webpack:\JavaScriptObfuscator\src\EspreeFacade.ts:82:19) at Function.value (G:\sites\flip-game\node_modules\javascript-obfuscator\dist\webpack:\JavaScriptObfuscator\src\EspreeFacade.ts:44:65) at e.value (G:\sites\flip-game\node_modules\javascript-obfuscator\dist\webpack:\JavaScriptObfuscator\src\JavaScriptObfuscator.ts:154:34) at e.value (G:\sites\flip-game\node_modules\javascript-obfuscator\dist\webpack:\JavaScriptObfuscator\src\JavaScriptObfuscator.ts:135:55) at Function.value (G:\sites\flip-game\node_modules\javascript-obfuscator\dist\webpack:\JavaScriptObfuscator\src\JavaScriptObfuscatorFacade.ts:27:85) at G:\sites\flip-game\node_modules\webpack-obfuscator\index.js:49:66 at Array.forEach (<anonymous>) at Compilation.<anonymous> (G:\sites\flip-game\node_modules\webpack-obfuscator\index.js:27:23) at next (G:\sites\flip-game\node_modules\tapable\lib\Tapable.js:204:14) at G:\sites\flip-game\node_modules\uglifyjs-webpack-plugin\dist\index.js:266:11 at step (G:\sites\flip-game\node_modules\uglifyjs-webpack-plugin\dist\uglify\index.js:90:11) at done (G:\sites\flip-game\node_modules\uglifyjs-webpack-plugin\dist\uglify\index.js:99:22) at G:\sites\flip-game\node_modules\uglifyjs-webpack-plugin\dist\uglify\index.js:105:15 at G:\sites\flip-game\node_modules\worker-farm\lib\farm.js:191:19 at _combinedTickCallback (internal/process/next_tick.js:131:7) at process._tickCallback (internal/process/next_tick.js:180:9) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! flip-game@1.0.0 build:
node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the flip-game@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\hp\AppData\Roaming\npm-cache_logs\2018-05-05T18_46_22_525Z-debug.log`
Trying to obfuscate Vuejs code. Added the plugin to webpack.
Searched a lot for the solution. could not find any
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:14 (4 by maintainers)
Top GitHub Comments
@shaji-Dev @cmiltone i try this and work for me the project created by vue-cli 3.0 package.json
vue.config.js
Is there any fix for this guys? I’m still getting the
Error: Cannot read property 'ecmaFeatures' of undefined
when obfuscating in Nodejs grammatically, but works fine in the terminal…