JczhangJ
Convex Community3y ago
7 replies
Jczhang

Convex Action build error: could not resolve 'crypto-js'

I tried to import CryptoJS from "crypto-js"; in a custom convex action

But on
npx convex dev
I got this error (which I think comes from esbuild but I am not familiar with what is happening underlying Convex)

You can mark the path "crypto-js" as external to exclude it from the bundle, which will remove
  this error.


How can I mark this dep as external in my next.js project? I have installed the package from npm install.

Thanks for helping!
Was this page helpful?