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

v1.78.0 error on .vue files: Non-null assertions can only be used in TypeScript files.ts(8013) #181630

Closed
MarceloLuis1997 opened this issue May 5, 2023 · 9 comments
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension

Comments

@MarceloLuis1997
Copy link

MarceloLuis1997 commented May 5, 2023

Does this issue occur when all extensions are disabled?: No

  • VS Code Version: 1.78.0
  • OS Version: Ubuntu 22.04 (Linux x64 5.19.0-41-generic snap)

Steps to Reproduce:

After the update for v1.78 i'm getting the error Non-null assertions can only be used in TypeScript files.ts(8013) on .vue files when using the slot template:

<template #[item.status]="{item}">

The error is reported on the # character.

It's working fine on v.1.77

image

@genelee96
Copy link

Same error here. Happened after the new VScode update since I havn't changed any code since before/after it started occurring

@Hobeein
Copy link

Hobeein commented May 6, 2023

Same here. This error has confused me for many hours. Tried many different way but can not solve it , thought it was my problem.
Hoping for help.

vscode_error

@craigrileyuk
Copy link

Same.

Checked I was using Volar in take-over mode and upgraded to v5.0.4 of Volar's TS server, but still errors.

@Doston777
Copy link

Same) But this error does not affect the performance of the program.

@MarceloLuis1997
Copy link
Author

@VSCodeTriageBot
Copy link
Collaborator

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2023
@edson-alexandre
Copy link

edson-alexandre commented May 9, 2023

I was facing the same problem and after removing an extention called "Vue Language Features (Volar)" the problem was fixed. Instead of that extension I am using Vetur now.

@craigrileyuk
Copy link

after removing an extention called "Vue Language Features (Volar)" the problem was fixed. Instead of that extension I am using Vetur now.

… After amputating my arm, the tiny spot on my finger was fixed. Now I just grab at things with my mouth if I want to pick them up.

@qbuache
Copy link

qbuache commented May 11, 2023

I have that issue since I upgraded vue from 3.2.45 to 3.3.1. No error message prior to that with VSCode 1.78.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension
Projects
None yet
Development

No branches or pull requests

9 participants