logaretm / vee-validate

✅ Painless Vue forms
https://vee-validate.logaretm.com/v4
MIT License
10.79k stars 1.26k forks source link

Getting this weird TS error after upgrading to 5.6.2 The inferred type of '__VLS_template' cannot be named without a reference to 'vee-validate/node_modules/type-fest/source/partial-deep'. #4879

Open ldsenow opened 2 weeks ago

ldsenow commented 2 weeks ago

What happened?

After the upgrade of TS to 5.6.2, start getting this weird error.

The inferred type of '__VLS_template' cannot be named without a reference to 'vee-validate/node_modules/type-fest/source/partial-deep'.

No clue how to fix it.

Reproduction steps

  1. Use TS 5.6.2
  2. Build the vue portal that uses vee-validate
  3. Exploded then ...

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

Relevant log output

error TS2742: The inferred type of '__VLS_template' cannot be named without a reference to 'vee-validate/node_modules/type-fest/source/partial-deep'. This is likely not portable. A type annotation is necessary.

115 function __VLS_template() {

Demo link

n/a

Code of Conduct

logaretm commented 3 days ago

Can you add a simple repro for this?