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?
3 Replies
Rhys
Rhys3y ago
@sam Can you post your code / where you think this is being called from?
nyan
nyanOP3y 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
Sawako
Sawako3y 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
Want results from more Discord servers?
Add your server