I’m trying to encrypt data in server.js file. According to npm, crypto module is now a built-in module.
Ref: https://www.npmjs.com/package/crypto
When I import the crypto module in server.js
like
const crypto = require('crypto');
without mentioning it under dependencies section in manifest.json
, I get the following error.
The local server could not be started due to the following issue(s):
✖ server/server.js::2: 'crypto' is not listed in manifest.
My question is, how do I use a built-in node module in server.js
without mentioning it in manifest.json
?
I’m using node v18.20.3.