Skip to content

Fail to start when on node v12 #1

@Thesephi

Description

@Thesephi

Reproduction:

  • use Node.js v12 (e.g. nvm use v12)
  • start the validator node with npm start
  • run into this:
npm start

> oracle-validator-node@2.1.0 start
> npm run build && node 'dist/src/main.js' start


> oracle-validator-node@2.1.0 build
> tsc -p .

/home/ubuntu/fluxprotocol/oracle-validator-node/dist/src/config.js:20
exports.DB_PATH = process.env.DB_PATH ?? './';
                                       ^

SyntaxError: Unexpected token '?'

Recommended action: adjust tsc build config so that the nullish coalescing operator (??) is supported.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions