Skip to content

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

Description

@Nantris
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.

Activity

  1. shaji-Dev commented on Jul 10, 2018

    @shaji-Dev

    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.

  2. Nantris commented on Jul 10, 2018

    @Nantris
    Author

    @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.

  3. shaji-Dev commented on Jul 11, 2018

    @shaji-Dev

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions