#toSorted is throwing error in Runtime

14 messages · Page 1 of 1 (latest)

grand dragon
#

I chose to use toSorted for the first time, but I ran into an error, is it too early to use it?
Nextjs v: 14.0.1

// tsconfig
{
  "compilerOptions": {
    "target": "es2017",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "checkJs": true,
    "skipLibCheck": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noEmit": true,
    "esModuleInterop": true,
    "module": "esnext",
    "moduleResolution": "node",
}
```
eager flickerBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

agile crag
grand dragon
#

I could feel it!

grand dragon
#

yes, but I am still using v 18.x

real viper
#

I was correcting Ray because he accidentally phrased it as if it's not available at all in Node.

#

Offtopic: Anyways, you should consider upgrading to v20 as this is the new LTS.

grand dragon
#

it is still in beta, I prefer to wait till becomes stable

real viper
#

It's LTS ever since October

dusky patrol
eager flickerBOT
#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer
dusky patrol