No loader is configured for ".node" files

My worker uses email-reply-parser https://github.com/crisp-oss/email-reply-parser which internally uses re2 and it's causing a deployment error because re2 imports a .node file
GitHub
GitHub - crisp-oss/email-reply-parser: 🔎 Node library for parsing p...
🔎 Node library for parsing plain text email content. - crisp-oss/email-reply-parser
2 Replies
yinks
yinksOP3mo ago
sigh
Jürgen Leschner
Hi @yinks , it looks like re2 depends on custom C++ code compiled with node-gyp which (afaik) won't work in cloudflare workers. https://github.com/uhop/node-re2/wiki/Notes-on-building-alternatives#the-current-implementation You may have more luck with the wasm version.
GitHub
Notes on building alternatives
node.js bindings for RE2: fast, safe alternative to backtracking regular expression engines. - uhop/node-re2
Want results from more Discord servers?
Add your server