import * as redis from 'redis';
const client = redis.createClient(process.env.REDISCLOUD_URL, {
no_ready_check: true,
});
Error message here:
> node -r babel-register ./src/bin/www
dns.js:105
throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'hostname',
^
TypeError [ERR_INVALID_ARG_TYPE]: The "hostname" argument must be one of type string or falsy. Received type object
at lookup (dns.js:105:11)
at net.js:1090:5
at defaultTriggerAsyncIdScope (internal/async_hooks.js:281:19)
at lookupAndConnect (net.js:1089:3)
at Socket.connect (net.js:1017:5)
at Object.connect (net.js:123:35)
I am trying to inject some ENV before the actual command but it doesn't work for me.
Here are my setting and code.
Error message here: