Open Aleksa1312 opened 2 weeks ago
Temporary fix: Try adding this block to next.config file:
experimental: {
serverComponentsExternalPackages: ["@node-rs/argon2"]
}
For some reason, it seems like this package doesn't work with Turbopack. Source: https://lucia-auth.com/tutorials/username-and-password/nextjs-app
The Problem
After installing this package using
pnpm add @node-rs/argon2
my dev server crashes immediately with the following error:The character in question is: "U+FFFD".
I am using a Next.js 14 with server actions, where I use
@node-rs/argon2
for hashing and verifying passwords on the server.There is only two functions where I use
@node-rs/argon2
:Node Version
This might be the problem since it is not listed in the support matrix.
v20.12.0
Operating System
Windows 10 x64