Code Monkey home page Code Monkey logo

Comments (11)

vv001 avatar vv001 commented on July 18, 2024 1

That did the trick. Thanks!

from jscrambler.

joaosamouco avatar joaosamouco commented on July 18, 2024

Hi @vv001,

That error occurs when you are trying to use a deprecated Jscrambler version. Currently available versions are 5.4, 5.5 (stable) and 5.6 (latest).

You are probably specifying an old version on your jscrambler.json file. Can you check the jscramblerVersion value on that file?

from jscrambler.

anishg-cn avatar anishg-cn commented on July 18, 2024

i am getting this error and it is not solved even after writing the correct version number in .jscramblerrc file. Please help.

from jscrambler.

joaosamouco avatar joaosamouco commented on July 18, 2024

i am getting this error and it is not solved even after writing the correct version number in .jscramblerrc file. Please help.

Hi @anishg-cn 👋

Can you show us your .jscramblerrc file (without the accessKey, secretKey, and applicationId values) and the command you are running?

Also, for this kind of issue, you can contact our Support Team directly by emailing [email protected].

from jscrambler.

anishg-cn avatar anishg-cn commented on July 18, 2024

@joaosamouco

{
"keys": {
"accessKey": "",
"secretKey": ""
},
"applicationId": "",
"filesSrc": [
"./build//*.html",
"./build/
/*.js"
],
"filesDest": "./",
"params": [
{
"name": "whitespaceRemoval"
},
{
"name": "identifiersRenaming",
"options": {
"mode": "SAFEST"
}
},
{
"name": "dotToBracketNotation"
},
{
"name": "deadCodeInjection"
},
{
"name": "stringConcealing"
},
{
"name": "functionReordering"
},
{
"options": {
"freq": 1,
"features": [
"opaqueFunctions"
]
},
"name": "functionOutlining"
},
{
"name": "propertyKeysObfuscation"
},
{
"name": "regexObfuscation"
},
{
"name": "booleanToAnything"
}
],
"areSubscribersOrdered": false,
"useRecommendedOrder": true,
"jscramblerVersion": "6.1"
}

command i am running is the following:

react-scripts build && jscrambler

from jscrambler.

joaosamouco avatar joaosamouco commented on July 18, 2024

From what I can see you are trying to use an old jscramblerVersion.
These are the current versions available:

  • 7.0 (legacy)
  • 7.1 (stable)
  • 7.2 (latest)

I recommend that you use version 7.1 and you should be able to create protections again.

@anishg-cn

from jscrambler.

anishg-cn avatar anishg-cn commented on July 18, 2024

@joaosamouco but the jscrambler version that is install from npm is of version 6.1.1?

from jscrambler.

joaosamouco avatar joaosamouco commented on July 18, 2024

Yes @anishg-cn. That is the most recent client version. However, the jscramblerVersion is a different thing, you can read more about it here.

If "locking" to a specific version is something that you are not interested and you want to use the stable version all the time, you can remove the jscramblerVersion field for you .jscramblerrc file.

from jscrambler.

anishg-cn avatar anishg-cn commented on July 18, 2024

@joaosamouco thanks it works. can you tell me where can I find documentation on all the valid params that I can use?

from jscrambler.

joaosamouco avatar joaosamouco commented on July 18, 2024

@anishg-cn

I'm afraid that we don't have the exact documentation you are asking for. I will make sure that we will work on that in the near future.
For now, you can check our CLI Options since these usually have a direct mapping to a config parameter.

from jscrambler.

f-ribeiro avatar f-ribeiro commented on July 18, 2024

Hi @anishg-cn ,
We have just added a new page to our Docs with info regarding the Jscrambler Configuration File.
Let me know if that helped.

from jscrambler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.