Timeline for Error when using 'Keypair.generate' from "@solana/web3.js" - SyntaxError: Octal escape sequences are not allowed in strict mode
Current License: CC BY-SA 4.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 12 at 10:59 | comment | added | tripleee | Possible duplicate of solana.stackexchange.com/questions/14468/… | |
Jul 12 at 10:55 | comment | converted from answer | Abdul Rozaq | i got same issue please visit this link [solana.stackexchange.com/a/15347/22329][1] | |
Jan 5 at 18:08 | vote | accept | 4cody | ||
Jan 4 at 19:10 | review | Close votes | |||
Jan 19 at 3:09 | |||||
Jan 4 at 18:43 | history | edited | mikemaccana♦ | CC BY-SA 4.0 |
added 10 characters in body
|
Jan 4 at 18:41 | answer | added | mikemaccana♦ | timeline score: 2 | |
Jan 4 at 18:09 | comment | added | mikemaccana♦ |
@4cody sounds like this is a warning from some node internal code, in the ESM loader node:internal/modules/esm/loader:236:14 - what version of node.js are you using? Can you try upgrading to the current latest 18x or 20.x?
|
|
Jan 4 at 14:37 | comment | added | 4cody | github.com/4cody/sol | |
Jan 4 at 1:44 | comment | added | nickfrosty | So very odd to me. Can you publish everything to a repo you and share the link? | |
Jan 3 at 23:33 | comment | added | 4cody | I've just reinstalled typescript local to the folder - same error This is the stack trace - SyntaxError: Octal escape sequences are not allowed in strict mode. at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:139:18) at ESMLoader.moduleProvider (node:internal/modules/esm/loader:236:14) at async link (node:internal/modules/esm/module_job:67:21) | |
Jan 3 at 19:45 | comment | added | nickfrosty |
what line of code is throwing this octal error? I just tried running this locally and it runs fine, no errors. can you share your tsconfig?
|
|
Jan 3 at 19:29 | comment | added | 4cody | Yes so I've followed this step by step soldev.app/course/intro-to-cryptography | |
Jan 3 at 19:07 | history | edited | 4cody | CC BY-SA 4.0 |
added 444 characters in body
|
Jan 3 at 18:50 | comment | added | nickfrosty |
I'm guessing this is a typescript issue. Try turning off strict mode via your tsconfig.json
|
|
Jan 3 at 18:49 | comment | added | nickfrosty | do you have the npm packages installed? | |
Jan 3 at 18:49 | comment | added | nickfrosty | This is for sure not a Solana specific issue, but rather a JS/TS related issue. What is your local setup for this? I see you using esrun but no other details here. | |
S Jan 3 at 18:47 | review | First questions | |||
Jan 3 at 18:48 | |||||
S Jan 3 at 18:47 | history | asked | 4cody | CC BY-SA 4.0 |