Vetur: TypeScript 3.7 features interpreted as errors

Created on 11 Nov 2019  路  1Comment  路  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Info

  • Platform: macOS Catalina
  • Vetur version: 0.22.6
  • VS Code version: 1.40.0

Problem

TypeScript v3.7 introduced some new features, like optional chaining and nullish coalesce.
These changes produce errors for Vetur though.

Bildschirmfoto 2019-11-11 um 15 09 09

Reproducible Case

Just create a .vue file with its script being typescript (obviously on v3.7+) and create a function that uses the new features.

Most helpful comment

Enable Vetur: Use Workspace Dependencies to let Vetur use 3.7. See https://github.com/vuejs/vetur/issues/1438#issuecomment-551911880

>All comments

Enable Vetur: Use Workspace Dependencies to let Vetur use 3.7. See https://github.com/vuejs/vetur/issues/1438#issuecomment-551911880

Was this page helpful?
0 / 5 - 0 ratings