You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing this package using pnpm add @node-rs/argon2 my dev server crashes immediately with the following error:
Module parse failed: Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
Import trace for requested module:
./node_modules/.pnpm/@node-rs+argon2-win32-x64-msvc@1.8.3/node_modules/@node-rs/argon2-win32-x64-msvc/argon2.win32-x64-msvc.node
./node_modules/.pnpm/@node-rs+argon2@1.8.3/node_modules/@node-rs/argon2/index.js
./src/lib/auth/index.ts
./src/actions/login.ts
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:
This might be the problem since it is not listed in the support matrix.
v20.12.0
Operating System
Windows 10 x64
The text was updated successfully, but these errors were encountered:
AleksaSimovic1
changed the title
Module parse failed: Unexpected character '�'
@node-rs/argon2: Module parse failed: Unexpected character '�'
Jun 17, 2024
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
The text was updated successfully, but these errors were encountered: