You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I am trying to obfuscate both my client and server side code for my fivem scripts that are made in ts and compiled to js using esbuild. The client-side builds fine, but when it tries to build the server-side I end up getting an error. Read below.
Current Behavior
Explained already above.
Your Environment
Obfuscator version used: Latest
Node version used: Latest Stable
Stack trace
C:\GTAServerFX\resources\[main]\prp-showroom\project\node_modules\javascript-obfuscator\dist\webpack:\javascript-obfuscator\src\utils\CryptUtils.ts:31
string = encodeURIComponent(string).replace(/%([0-9A-F]{2})/g, (match, p1) => {
^
URIError: URI malformed
at encodeURIComponent (<anonymous>)
at f.btoa (C:\GTAServerFX\resources\[main]\prp-showroom\project\node_modules\javascript-obfuscator\dist\webpack:\javascript-obfuscator\src\utils\CryptUtils.ts:31:18)
at o.getEncodedValue (C:\GTAServerFX\resources\[main]\prp-showroom\project\node_modules\javascript-obfuscator\dist\webpack:\javascript-obfuscator\src\storages\string-array-transformers\StringArrayStorage.ts:125:69)
at o.getOrSetIfDoesNotExist (C:\GTAServerFX\resources\[main]\prp-showroom\project\node_modules\javascript-obfuscator\dist\webpack:\javascript-obfuscator\src\storages\string-array-transformers\StringArrayStorage.ts:97:60)
at o.get (C:\GTAServerFX\resources\[main]\prp-showroom\project\node_modules\javascript-obfuscator\dist\webpack:\javascript-obfuscator\src\storages\string-array-transformers\StringArrayStorage.ts:51:21)
at o.apply (C:\GTAServerFX\resources\[main]\prp-showroom\project\node_modules\javascript-obfuscator\dist\webpack:\javascript-obfuscator\src\storages\MapStorage.ts:35:28)
at o.getOrThrow (C:\GTAServerFX\resources\[main]\prp-showroom\project\node_modules\javascript-obfuscator\dist\webpack:\javascript-obfuscator\src\decorators\Initializable.ts:61:39)
at o.analyzeLiteralNode (C:\GTAServerFX\resources\[main]\prp-showroom\project\node_modules\javascript-obfuscator\dist\webpack:\javascript-obfuscator\src\analyzers\string-array-storage-analyzer\StringArrayStorageAnalyzer.ts:84:78)
at Controller.enter (C:\GTAServerFX\resources\[main]\prp-showroom\project\node_modules\javascript-obfuscator\dist\webpack:\javascript-obfuscator\src\analyzers\string-array-storage-analyzer\StringArrayStorageAnalyzer.ts:67:22)
at Controller.__execute (C:\GTAServerFX\resources\[main]\prp-showroom\project\node_modules\estraverse\estraverse.js:332:31)
Minimal working example that will help to reproduce issue
I don't know what's causing the error in the first place.
The text was updated successfully, but these errors were encountered:
So I am trying to obfuscate both my client and server side code for my fivem scripts that are made in ts and compiled to js using esbuild. The client-side builds fine, but when it tries to build the server-side I end up getting an error. Read below.
Current Behavior
Explained already above.
Your Environment
Stack trace
Minimal working example that will help to reproduce issue
I don't know what's causing the error in the first place.
The text was updated successfully, but these errors were encountered: