RDFLib / prez-ui

BSD 3-Clause "New" or "Revised" License
10 stars 7 forks source link

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

Open ashleysommer opened 4 months ago

ashleysommer commented 4 months ago

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: https://github.com/RDFLib/prez-ui/blob/781622441d0c2ecd60200088c0352e82c547cc61/src/main.ts#L17

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