-
Notifications
You must be signed in to change notification settings - Fork 1k
SyntaxError: Invalid or unexpected token in pkg/prelude/bootstrap.js #321
Comments
Bump :) |
It happens to me as well when I try to replace an default icon to my own using ResourceHacker under Windows |
Yup, any solution to this? |
yup same happened to me lol |
Just ran into the same issue in a local build script. Circumvented for now by generating a new .ico file with exactly the same icon sizes as the original file (16, 32, 48, 64, 128 @ 32-bpp.) This keeps the file sizes the same and presumably any resource offsets etc which may have been causing issues when writing the new executable. |
@dhruvio I figured the syntax errors might be related to string offset changes from patching the binary. (I also run NixOS) Now I get 'Pkg: Error reading from file.' as output. The quick and dirty solution that worked was to create a /lib64 directory and symlink the ld-linux-x86-64.so.2 from glibc into there. I'd be interested to know, after using patchelf to modify the interpreter and/or rpath, what parts of the file would need changing to work with the new offsets |
Note: See the comment here: https://github.com/NixOS/nixpkgs/pull/48193/files#diff-329ce6280c48eac47275b02077a2fc62R25 |
|
I receive this error when using the Now CLI (version 9.0.1). I'm using Node.js 8.9.3, and am on NixOS. Note that I patch the Now CLI binary to use my own dynamic linker, and update its RPATH to point to
libstdc++.so.6
(not found on my system by default).The text was updated successfully, but these errors were encountered: