javascript-obfuscator / grunt-contrib-obfuscator

Grunt plugin for the javascript-obfuscator package.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loading "obfuscator.js" tasks...ERROR

RohanSakhale opened this issue · comments

Locally this is working perfectly on Windows machine but giving error "ReferenceError: Map is not defined" when running on GitLab CI using Docker "saiashirwadinformatia/php-node:v1"

Build output

$ grunt
Loading "obfuscator.js" tasks...ERROR
>> ReferenceError: Map is not defined
Warning: Task "obfuscator" not found.� Use --force to continue.

Aborted due to warnings.
ERROR: Build failed: exit code 1

What Node version installed with saiashirwadinformatia/php-node:v?

javascript-obfuscator supports only node 4+

Exactly, node installed using apt-get install nodejs is quite old, rebuilded docker from node and everything is working fine. Thanks for pointing out the issue.

I'm getting an error through Task Runner Explorer with Visual Studio for obfuscator. It says:

Loading "ubfuscator.js" tasks...ERROR
ReferenceError: Symbol is not defined

If running "grunt" from bash shell, everything works fine and no error is displayed.

Any suggestions?