CEF randomly breaks completely fine production files (and somehow some client files)

Hi, so, 1/2 in 10 times loading into my server (building prod. files before joining increases chances to 60/70% or more) CEF just can’t load bundled create-react-app.
The problem is with js bundled file, where it shows that it as an Uncaught SyntaxError: Invalid or unexpected token.
Thought that it might be a filesize limit, so then I split the bundle into chunks, same problem, now when loading a chunk! (sometimes even more than one)
Tried searching the problem, in some forum someone recomended not minifying the files. After that, the issue is even more hilariously xd (more below).
This is my last attempt with not minified bundled files:

And the cherry on top is that, whenever this problem occurs, a client file also seems to fail to load.
This client file is mainly responsible for creating a “bridge” with the “hud” and other resources, and is only being imported from other resources aswell.
The error occurs in a randomly resource that imported the file, printing the exception Error parsing script: (...):1 unexpected symbol near '</127>' and failing everything that depends on that import:


And that line doesn’t have anything in it.

Restarting the resources affected by this (first “vv-hud”, then the other ones) makes everything work again fine, so, first-load related?

I don’t have a clue in why this is happening (specially the client file part) neither reproduction steps, besides percentages.
Also, when researching, someone mentioned that cef logs would paint a better picture in what is happening, but couldnt find them inside fivem app data (or I’m just blind :upside_down_face: ).

To wrap everything up, I tried mentioning this issue in discord some time ago, when another user also mentioned something similar but with vue (same nui error).

Any help is appreciated and I can provide some of the files or logs if needed to somehow reproduce this.

Repro steps would help, this could be something in a large variety of places ranging from server packfile generation to request parallelism.

DMing them to me on here would be fine.

Okok, I’ll dm u the bundled files whenever I can.
Thank you for the reply!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.