An open API service indexing awesome lists of open source software.

https://github.com/mario34/vue-tsc-bug


https://github.com/mario34/vue-tsc-bug

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# vue-tsc dts bug

How to reproduce the problem

```bash
$ pnpm run build:dts

> [email protected] build:dts /Users/mario/Project/element-plus-dts
> vue-tsc --declaration --emitDeclarationOnly

src/demo.vue:9:25 - error TS2742: The inferred type of 'default' cannot be named without a reference to '.pnpm/@[email protected]/node_modules/@vue/shared'. This is likely not portable. A type annotation is necessary.

9

10 import { ref } from 'vue'
~~~~~~~~~~~~~~~~~~~~~~~~~
...
18 })
~~
19

Found 1 error in src/demo.vue:9

 ELIFECYCLE  Command failed with exit code 1.
```