• Error...

    From Bucko@21:4/131 to All on Sunday, April 24, 2022 00:39:16
    Hey guys, getting an error after upgrading to the latest beta, it is as follows:

    /home/al/enigma-bbs/core/theme.js:588
    if(_.isNumber(options?.position?.row)) {
    ^

    SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at initMenusAndThemes (/home/al/enigma-bbs/core/bbs.js:226:42)
    at /home/al/enigma-bbs/node_modules/async/dist/async.js:3669:28
    at replenish (/home/al/enigma-bbs/node_modules/async/dist/async.js:446:21)/
    if(_.isNumber(options?.position?.row)) {
    ^

    Anyone know how to fix this?? Also if not easily fixed, is it possible to move my user list and config files over to a new install? What directories and files would have to be moved??

    Thanks for any info...

    Al

    ... Everyone has a photographic memory. Some don't have film.

    --- Mystic BBS v1.12 A47 2021/12/25 (Windows/32)
    * Origin: The Wrong Number Family Of BBS' - Wrong Number ][ (21:4/131)
  • From echicken@21:1/164 to Bucko on Monday, April 25, 2022 03:11:08
    Re: Error...
    By: Bucko to All on Sun Apr 24 2022 00:39:16

    if(_.isNumber(options?.position?.row)) {
    ^
    SyntaxError: Unexpected token '.'

    Anyone know how to fix this?? Also if not easily fixed, is it possible to

    My guess is you're trying to run it with an older version of node.js that doesn't support optional chaining (that ? operator). Upgrading node to version 14 or above may resolve this, but Enigma will probably require additional steps after that (eg. npm install).

    (That's my take as an outsider anyway; I've never installed/used Enigma, though I keep meaning to try it.)

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    * Origin: electronic chicken bbs - bbs.electronicchicken.com (21:1/164)
  • From Bucko@21:4/131 to echicken on Monday, April 25, 2022 19:13:55
    On 25 Apr 2022, echicken said the following...


    My guess is you're trying to run it with an older version of node.js that doesn't support optional chaining (that ? operator). Upgrading node to version 14 or above may resolve this, but Enigma will probably require additional steps after that (eg. npm install).

    (That's my take as an outsider anyway; I've never installed/used Enigma, though I keep meaning to try it.)


    I will give it a shot, got nothing to lose.. Thanks...

    AL

    ... If you can't make it good, make it LOOK good. -Bill Gates.

    --- Mystic BBS v1.12 A47 2021/12/25 (Windows/32)
    * Origin: The Wrong Number Family Of BBS' - Wrong Number ][ (21:4/131)
  • From NuSkooler@21:1/121 to Bucko on Tuesday, April 26, 2022 11:53:26

    On Sunday, April 24th Bucko was heard saying...
    if(_.isNumber(options?.position?.row)) {

    echicken is correct, you need to update Node. See the UPGRADE.md whenever you update (it's documented therein)

    Update node, then `npm install` to update modules and should be good to go.


    --
    |08 ■ |12NuSkooler |06// |12Xibalba |08- |07"|06The place of fear|07"
    |08 ■ |03xibalba|08.|03l33t|08.|03codes |08(|0344510|08/|03telnet|08, |0344511|08/|03ssh|08)
    |08 ■ |03ENiGMA 1/2 WHQ |08| |03Phenom |08| |0367 |08| |03iMPURE |08| |03ACiDic
    --- ENiGMA 1/2 v0.0.13-beta (linux; x64; 14.15.4)
    * Origin: Xibalba -+- xibalba.l33t.codes:44510 (21:1/121)
  • From Bucko@21:4/131 to NuSkooler on Tuesday, April 26, 2022 18:04:56
    On 26 Apr 2022, NuSkooler said the following...


    On Sunday, April 24th Bucko was heard saying...
    if(_.isNumber(options?.position?.row)) {

    echicken is correct, you need to update Node. See the UPGRADE.md
    whenever you update (it's documented therein)

    Update node, then `npm install` to update modules and should be good to go.

    I knew it was something stupid! Thanks...

    Al

    ... Kilometers are shorter than miles. Save gas, take your trip in kilometers

    --- Mystic BBS v1.12 A47 2021/12/25 (Windows/32)
    * Origin: The Wrong Number Family Of BBS' - Wrong Number ][ (21:4/131)