basics / nuxt-booster

nuxt-booster will help you to improve the lighthouse performance score (100/100) of your website. 🚀
https://basics.github.io/nuxt-booster/
MIT License
639 stars 32 forks source link

`targetFormats` appears to be an invalid config prop #989

Closed armenr closed 5 months ago

armenr commented 5 months ago

Describe the bug Attempting to use targetFormats throws TypeScript error: Type 'string[]' is not assignable to type 'undefined'.ts(2322)

To Reproduce Steps to reproduce the behavior:

  1. Install nuxt-booster
  2. Paste the configuration example provided in the docs
  3. Observe issues with the config...

Expected behavior Expectation would be that the config example provided in the docs would not throw typescript/type errors.

Screenshots Screenshot 2024-04-24 at 10 15 22 PM

ThornWalli commented 5 months ago

@armenr There is an update for this, had an undefined in the default of the module options, replaced it with a [].

Hope this fixes the message.

armenr commented 5 months ago

Woot, woot! Thank you!

This module is practically indiscernible from magic. Great work!! :)