sam - ```srcconfig.ts737 - error TS2345 Argum...

src/config.ts:7:37 - error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
src/config.ts:7:37 - error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
Anyone seen this before?
R
Rhys522d ago
@sam Can you post your code / where you think this is being called from?
N
nyan522d ago
import type { Options as MikroOptions } from '@mikro-orm/core';
import type { PostgreSqlDriver } from '@mikro-orm/postgresql';
import { LogLevel } from '@sapphire/framework';
import { envParseArray, envParseString } from '@skyra/env-utilities';
import { GatewayIntentBits } from 'discord-api-types/v10';
import type { ActivitiesOptions, ClientOptions, ExcludeEnum, WebhookClientData } from 'discord.js';
import type { ActivityTypes } from 'discord.js/typings/enums';

export const OWNERS = envParseArray('CLIENT_OWNERS');
import type { Options as MikroOptions } from '@mikro-orm/core';
import type { PostgreSqlDriver } from '@mikro-orm/postgresql';
import { LogLevel } from '@sapphire/framework';
import { envParseArray, envParseString } from '@skyra/env-utilities';
import { GatewayIntentBits } from 'discord-api-types/v10';
import type { ActivitiesOptions, ClientOptions, ExcludeEnum, WebhookClientData } from 'discord.js';
import type { ActivityTypes } from 'discord.js/typings/enums';

export const OWNERS = envParseArray('CLIENT_OWNERS');
anytime I try to read from env using the @Skyra/env-utilities, I get this error
S
Sawako522d ago
GitHub
archid-components/README.md at main · skyra-project/archid-components
A collection of shared utilities for the ArchId Network - archid-components/README.md at main · skyra-project/archid-components