import is undefined

I'm using a package called samlify which has imports some items from package node-forge,. For some reason, the node-forge imports are undefined in the cloudflare worker. I'm getting an error TypeError: Cannot read property of undefined (reading 'decode64') .... Can anyone help?
2 Replies
cocosrobal
cocosrobal2w ago
add compatibility_flags = [ "nodejs_compat" ] to your wrangler.toml
bnason
bnason2w ago
let me try that thanks That did not seem to help unfortunately