Worker not finding module when "node:" prefix is used

I'm trying to import an npm module, but if I try to import it with the "node:" prefix as the docs say, I get a "no such module" error. If I remove the "node:" prefix though it is able to find the module but then of course it has compatibility issues, so I assume this isn't what I want. How should I be importing the module?

I have enabled nodejs_compat in my wrangler.toml file
Was this page helpful?