Skip to content

NodeJS: SyntaxError: Unexpected identifier #50

Closed

Description

@serge-fabiano

Hi,

I obfuscated my whole NodeJS project with you Grunt task and when I want to run it I got this syntax error.

SyntaxError: Unexpected identifier
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\Data\Private\Innovation\EV\ev-server\dist\client\soap\SoapChargingStationClient.js:1:6037)
at Module._compile (module.js:570:32)

I tried several other options (medium obfuscation, optimal performance...) without success.

I search a solution but found nothing.

Any clue?

Thanks,
Serge.

Activity

  1. sanex3339 commented on Apr 29, 2017

    @sanex3339
    Member

    Hi, can you provide more detailed error message? Also i will very happy if you send me small project with example of current problem, it help me to reproduce the error.

  2. serge-fabiano commented on May 1, 2017

    @serge-fabiano
    Author

    Hi,

    Find attached the part that fails.

    Just rename the 'pdf' to 'zip' :-) - it does not accept ZIP file :( - and unpack it, do 'npm install' + 'grunt' to get the syntax error.

    Thanks!
    Serge.

    src.pdf

  3. sanex3339 commented on May 2, 2017

    @sanex3339
    Member

    Tnx, i'll look at this right now

  4. sanex3339 commented on May 2, 2017

    @sanex3339
    Member

    How i can build dist files? grunt task grunt.registerTask("build:prod", ["clean", "uglify"]); without ["clean", "uglify"] doesn't generate dist folder

  5. sanex3339 commented on May 2, 2017

    @sanex3339
    Member

    It's a bug!

  6. sanex3339 commented on May 2, 2017

    @sanex3339
    Member

    I'll fix it soon as possible (today)

  7. sanex3339 commented on May 2, 2017

    @sanex3339
    Member

    [email protected] out! Please update grunt-contrib-obfuscator to 3.0.0 version

  8. slig commented on May 2, 2017

    @slig

    Since the grunt-contrib-obfuscator's package.json specified "javascript-obfuscator": "^0.8.1", it won't pull the new version of javascript-obfuscator because it's 0.9.x and not 0.8.x, I believe.

  9. sanex3339 commented on May 2, 2017

    @sanex3339
    Member

    Can you update it?

  10. slig commented on May 2, 2017

    @slig

    Updated to a new version [email protected].

  11. sanex3339 commented on May 2, 2017

    @sanex3339
    Member

    Thank you!

  12. slig commented on May 2, 2017

    @slig

    You're welcome. I should've followed the same version number you use on your package. Would've been much easier to understand.

  13. qingweiqm commented on May 3, 2017

    @qingweiqm
  14. qingweiqm commented on May 3, 2017

    @qingweiqm
  15. qingweiqm commented on May 3, 2017

    @qingweiqm
  16. 12 remaining items

  17. serge-fabiano commented on May 7, 2017

    @serge-fabiano
    Author

    And ? :-)

  18. sanex3339 commented on May 8, 2017

    @sanex3339
    Member

    I will look, but not now and not today =( Sorry, but today i haven't time for programming =(

  19. serge-fabiano commented on May 8, 2017

    @serge-fabiano
    Author

    No problem :-)

  20. sanex3339 commented on May 11, 2017

    @sanex3339
    Member

    I obfuscated both ChargingStationClient.js and SoapChargingStationClient.js without any problems (CLI with default options)

  21. sanex3339 commented on May 11, 2017

    @sanex3339
    Member

    Can you provide another example? In previous example grunt task didn't work at first, i edited gruntfile to run it.

  22. sanex3339 commented on May 17, 2017

    @sanex3339
    Member

    ping

  23. serge-fabiano commented on May 18, 2017

    @serge-fabiano
    Author

    pong :)

    Sorry I'm on holiday and I'm going back soon.

    I'll provide you another example.

    Cheers!

  24. sanex3339 commented on May 19, 2017

    @sanex3339
    Member

    Ok

  25. sanex3339 commented on May 31, 2017

    @sanex3339
    Member

    ping :)

  26. added this to the 0.10.0 milestone on May 31, 2017
  27. sanex3339 commented on Jun 20, 2017

    @sanex3339
    Member

    ping

  28. sanex3339 commented on Jun 28, 2017

    @sanex3339
    Member

    Closed due to inactivity. Please, create new ticket if necessary.

  29. lock commented on Jun 6, 2018

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  30. locked as resolved and limited conversation to collaborators on Jun 6, 2018
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions