-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SvelteKit 2 & Cloudflare Page: Could not resolve "@node-rs/argon2-wasm32-wasi" #862
Comments
I have the same issue with esbuild (webpack was fine) using node v22 not finding if I use an older v1.19.0 version that gives a bit more info (about 'path' and then the correct bit jieba-win32-x64-msvc) X [ERROR] Could not resolve "path"
node_modules/@node-rs/jieba/index.js:11:12:
11 │ } = require('path');
╵ ~~~~~~
The package "path" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
X [ERROR] No loader is configured for ".node" files: node_modules/@node-rs/jieba-win32-x64-msvc/jieba.win32-x64-msvc.node
node_modules/@node-rs/jieba/index.js:104:36:
104 │ ... nativeBinding = require('@node-rs/jieba-win32-x64-msvc'); |
need to install |
I had tried that and didn't work, I get (on windows x64) this error. Looks like a 32bit image or something to me.... with the older 1.9.0 version it does install
|
@adumesny see #792 (comment) for the context |
sure I can force install it locally once, but then anytime someone runs
add it, and create some other module error I will ignore, but then
Should I just stick to v1.9.0 and figure out a way to have esbuild load .node extension, or possibly stubb this code out since we do no need to support chineese at this time but a module we use depends on it. @Brooooooklyn thanks for the update. |
and even when I force add I still get these errors, so back to square one
|
fyi, I found a link comment online says you can use It also mentions a tutorial about using a custom "Argon2 Rust Worker" |
I made a project to reproduce the error here:
https://github.com/Shyrogan/sveltekit-argon2-cf-error
The text was updated successfully, but these errors were encountered: