8000 @ts-ignore doesn't work on the first line · Issue #3327 · vuejs/language-tools · GitHub
[go: up one dir, main page]

Skip to content 8000
@ts-ignore doesn't work on the first line #3327
Closed
@recallwei

Description

@recallwei

Issue migrate from vue/core #8633

Vue version

3.3.4

Link to minimal reproduction

https://play.vuejs.org/#eNqNj7FuwzAMRH+F1eIWiC2k6WQ4Qbr1D7pocWImcWFRAkW7g+F/L+0URZAuGe/I4+ON5j3GYujRlKZKR26jQELpI3Q1nbfOSHJm56j1MbDACIwnmODEwUOmscyRtbCXlLdnCoyOOhSoS+r9ARm24Mz6deOMo2OgJODTWU098px9YNcF+AzcNU/Zi6PKXvlKUyHoY1cLqgKoLuvdOC7haaqsqsVtKfYCQ+5Dg53+qvPl2cr+pc3KXF/PfR2LrxRIi45z2v0OtF8JizN7WmnWzlxEYiqtPTakMb3fDlwQiqXo7V7XLPckrce8CX6/KTbFm23aJLd2gcnnBw7fCVmPOLO6wVg1B+SckRpk5Eexd7Fb9N3oH36mT44mM/0AU2Os9Q==

Steps to reproduce

  • Put the // @ts-ignore on the top of the script.
  • TypeScript still checks the row between it.

What is expected?

It should work even put it on the top of the script.
I ended up swapping the code line so it wasn't at the top and it worked.

What is actually happening?

This made me have to unnecessarily change the code order.

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900H
    Memory: 5.51 GB / 15.67 GB
  Binaries:
    Node: 18.15.0 - ~\App\Node\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 9.2.0 - ~\App\Node\npm.CMD
  Browsers:
    Chrome: bookmarks.html
initial_preferences
    Edge: Spartan (44.22621.1848.0), Chromium (114.0.1823.51)
    Internet Explorer: 11.0.22621.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood reproduction ✨This issue provides a good reproduction, we will be able to investigate it first

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0