https://github.com/mario34/vue-tsc-bug
https://github.com/mario34/vue-tsc-bug
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mario34/vue-tsc-bug
- Owner: Mario34
- Created: 2022-06-21T03:01:58.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-21T03:08:21.000Z (almost 3 years ago)
- Last Synced: 2025-01-29T14:36:41.546Z (4 months ago)
- Language: Vue
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 --emitDeclarationOnlysrc/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.
```