Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.1.0 regression on uni-app projects #4737

Closed
ModyQyW opened this issue Aug 29, 2024 · 1 comment · Fixed by #4740
Closed

v2.1.0 regression on uni-app projects #4737

ModyQyW opened this issue Aug 29, 2024 · 1 comment · Fixed by #4740
Labels
bug Something isn't working

Comments

@ModyQyW
Copy link

ModyQyW commented Aug 29, 2024

Vue - Official extension or vue-tsc version

2.1.0

VSCode version

1.92.2

Vue version

3.4.38

TypeScript version

5.5.4

System Info

~/Documents/uni-helper/typed/playground git:(main) ✗ npx envinfo --system --binaries --browsers

  System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M2 Pro
    Memory: 118.70 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.1 - ~/.local/state/fnm_multishells/52235_1724893566594/bin/node
    npm: 10.5.0 - ~/.local/state/fnm_multishells/52235_1724893566594/bin/npm
    pnpm: 9.9.0 - ~/.local/state/fnm_multishells/52235_1724893566594/bin/pnpm
    Watchman: 2024.08.26.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 128.0.6613.85
    Safari: 17.6

Steps to reproduce

  1. git clone https://github.com/uni-helper/typed && typed
  2. corepack enable
  3. pnpm install
  4. pnpm run build
  5. Open playground with VSC like code playground
  6. Check pages/index/index.vue

What is expected?

Types are fine like v2.0.28.

image

What is actually happening?

I get any.

image

Link to minimal reproduction

Please check steps.

Any additional comments?

I am supporting uni-app component types by Volar. Always thank you for your work!

@davidmatter
Copy link
Collaborator

davidmatter commented Aug 29, 2024

Workaround for now: Add the following to your tsconfig.compilerOptions:

"paths": {
      "vue/__globalTypes_3.4_false": ["node_modules/vue/__globalTypes_3.4_false.d.ts"]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants