Skip to content
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

Error: Cannot read property 'ecmaFeatures' of undefined - EspreeFacade.ts:82 #14

Open
Nantris opened this issue Jun 21, 2018 · 3 comments

Comments

@Nantris
Copy link

Nantris commented Jun 21, 2018

C:\projects\myApp\node_modules\javascript-obfuscator\dist\webpack:\JavaScriptObfuscator\src\EspreeFacade.ts:82
            throw new Error(errorMessage);
                  ^
Error: Cannot read property 'ecmaFeatures' of undefined

Any thoughts on this? Used to work fine and I can't find anything that's changed.

@shaji-Dev
Copy link

Mine too, used to work just fine, and all of the sudden this error started to appear... did a clean install on all the packages and still can't find any fix for it.

@Nantris
Copy link
Author

Nantris commented Jul 10, 2018

@shaji-Dev I don't know if this helps you, but I found the issue did not exist using the plain javascript-obfuscator package. It was a slight pain to build a custom file to process and replace my JavaScript with the obfuscated versions, but at least it works. I only need to obfuscate one file though. If you need to obfuscate a bunch, that's a pain.

@shaji-Dev
Copy link

Yes, I know, it works just fine when you use it directly from the terminal, but I want to use it in programatically in my custom Node.js code and this is where the error occurs... Don't know why the same code works on my other PC but not on this one. It has the same packages and the same versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants