0

How do l fix the error below? I have a good token, I've changed it twice

Screenshot

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
iSooQ
  • 3
  • 2
  • Welcome to Stack Overflow. [Please don't post screenshots of text](https://meta.stackoverflow.com/a/285557/354577). They can't be searched or copied, or even consumed by users of adaptive technologies like screen readers. Instead, paste the code as text directly into your question. If you select it and click the `{}` button or Ctrl+K the code block will be indented by four spaces, which will cause it to be rendered as code. – ChrisGPT was on strike Dec 14 '21 at 21:03

1 Answers1

0

I've changed it twice

That's a syntax error. The value of the token is irrelevant: the version of Node.js you're using doesn't understand the nullish assignment operator, ??=.

It looks like support for ??= was added to Node.js somewhere during the v15 development cycle. Since Heroku supports even-numbered (long-term support) versions, you'll want to use Node.js version 16.

You can specify the version of Node.js you wish to use via your package.json, e.g.

{
  "name": "Some Application",
  "description": "An application that does cool stuff",
  "version": "1.0.0",
  "engines": {
    "node": "16.x"
  }
}

Update (or set) the node version in your package.json, commit, and redeploy.

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257