-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate-prep/all throws various errors depending by node version #5
Comments
The first two errors are caused by incompatible Node.js versions, but the last one looks like a bug. Please run it with |
Sure thing. Here you go:
nvm outputs, just to be sure the entire env is 'good':
|
Did you ever find a solution? |
@Bicet nope. |
I can confirm this bug. Since I was running Ubuntu 20.04, I did "sudo apt install yarn".
I then did "yarn install" and it complained that node was not recent (was 10.19 or something from ubuntu repos) and asked for node >= 12. So I did install the current Node LTS (16.XX). So I was able to "yarn install", but after that, I didn't get the "generate-all" command when running adevtool. Other commands are ok. It was linked to this "structuredClone" error that @Giovix92 encountered. So I did update to node 17.XX, and this time, it was ok... ...until I encounter the next error, very similar to @Giovix92:
This error comes from generate.ts at line 172. EDIT: it seems that product.img wasn't selected for the simg2img pass, so I did it manually and named it product.img.raw like other partitions and now the code executes a little further, until I encounter another error.
|
@ConradGyllenhaal |
@koen01 I finally tried the GrapheneOS fork and got the same error. But I've been told that adevtool was "never used for sunfish and march update". So I simply tried with april update and magically, didn't get this error anymore. Makes no sense to me that adevtool throw errors on march OTA but not on april OTA. Like if the OTA format did change between march and april? If you can target a more recent OTA file like april, give it a try maybe? |
Hello there, I'm running Ubuntu 20.04 with npm installed through nvm-sh.
While using generate-prep (or generate-all), the error vary depending on node version:
Command used:
adevtool generate-prep -s ~/dump/denniz_a16/ -b rp1a.200720.011 denniz.yaml
Dump used: https://gitlab.com/Giovix92/denniz_dump
Tinkered a bit with nvm, and found out the errors are different depending by node version:
SyntaxError: Unexpected token '?'
ReferenceError: structuredClone is not defined
[...] Extracting properties ⠋ TypeError: Cannot read properties of undefined (reading 'split')
YAML used:
Does that depend by my system config, my dump or by node/node package itself?
Thank you in advance!
The text was updated successfully, but these errors were encountered: