Error line in vscode when accesing env variable

Guys im get error when try configure drizzle config and use drizzle studio, im using vscode, nextjs 14, drizzle. But if i change the port using static string like "12edn2rjq" and not process.env.PORT the error is disapear. Thanks 🙏🏻.
No description
No description
No description
1 Reply
S Fasi
S Fasi4mo ago
process.env.* are of type string and port here requires number so just cast PORT as number or make sure it is a number by actually checking
Want results from more Discord servers?
Add your server