Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing error, string[] cannot be assigned to PrezFlavour[] #167

Open
ashleysommer opened this issue Jun 28, 2024 · 0 comments · May be fixed by #168
Open

Typing error, string[] cannot be assigned to PrezFlavour[] #167

ashleysommer opened this issue Jun 28, 2024 · 0 comments · May be fixed by #168

Comments

@ashleysommer
Copy link
Contributor

Building a prod release:

npm run build

Error:

src/main.ts:17:36 - error TS2345: Argument of type 'string[]' is not assignable to parameter of type 'PrezFlavour[]'.
  Type 'string' is not assignable to type 'PrezFlavour'.

17 app.provide(enabledPrezsConfigKey, config.enabledPrezs.split(","));

This is the referenced line:

app.provide(enabledPrezsConfigKey, config.enabledPrezs.split(","));

My build environment is using:
vite v4.5.3
typescript v5.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant