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

The inferred type of 'default' cannot be named without a reference to '.pnpm/vue@2.7.16/node_modules/vue'. This is likely not portable. A type annotation is necessary #315

Closed
3 tasks done
shaobeichen opened this issue Mar 25, 2024 · 1 comment
Labels
need reproduction Should provide a reproduction

Comments

@shaobeichen
Copy link

shaobeichen commented Mar 25, 2024

Describe the bug

image

In vue-demi, it is possible to switch the version of Vue. There is no problem when switching to Vue3, but when switching to Vue2, this error is reported. Can this error be attributed to the following figure? How should I handle it temporarily?
Now tsconfig is like this,

   /* alias */
    "baseUrl": "src",
    "paths": {
      "@/*": ["./*"],
      "@": ["./"]
    }

image

Reproduction

https://stackblitz.com/?starters=vite

Steps to reproduce

No response

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 4.61 GB / 15.75 GB
  Binaries:
    Node: 18.19.1 - ~\.nvm\versions\node\v18.19.1\bin\node.EXE
    npm: 10.2.4 - ~\.nvm\versions\node\v18.19.1\bin\npm.CMD
    pnpm: 7.9.5 - ~\.nvm\versions\node\v18.19.1\bin\pnpm.CMD
  Browsers:
    Edge: Chromium (122.0.2365.92)
    Internet Explorer: 11.0.19041.3636

Validations

@qmhc
Copy link
Owner

qmhc commented Mar 25, 2024

Please provide a reproduction.

@qmhc qmhc added the need reproduction Should provide a reproduction label Apr 3, 2024
@qmhc qmhc closed this as completed May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need reproduction Should provide a reproduction
Projects
None yet
Development

No branches or pull requests

2 participants