Empty files get `pos = -1` from the project service, while stock TS reports `0`

#72 · closed · 0 comments

View on GitHub ↗

andreww2012

Empty files with type information ending up with the following error when being linted: ``` Debug Failure. False expression: Node must have a real position for this operation ``` In particular, this often happens with Vue's SFC files w/o the `<script>` block. The full minimal reproduction (AI written): https://github.com/andreww2012/repros/tree/main/typescript-native-bridge-empty-file-no-real-position

Comments