@ts-ignore doesn't work on the first line
Vue version
3.3.4
Link to minimal reproduction
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
Any additional comments?
No response
Maybe yes, you know that there have been many updates to vue's repl recently, which uses monaco-valor
. I tried in monaco
everything works fine and in monaco-valor
have the same problem