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 '_sfc_main' cannot be named without a reference to ... #195

Closed
3 tasks done
lichong-a opened this issue Mar 24, 2023 · 4 comments
Closed
3 tasks done

Comments

@lichong-a
Copy link

Describe the bug

This looks like the same issue, i can not build success always when I use higher version vue.
#[The inferred type of '_sfc_main' cannot be named without a reference to](ttps://github.com/vuejs/core/issues/7038)

Reproduction

vuejs/core#7038

Steps to reproduce

No response

System Info

node: 18.12.1
plateform: windows11
vite: 4.2.1
vue: 3.2.47

Validations

@lichong-a
Copy link
Author

lichong-a commented Mar 24, 2023

console output

[vite:dts] Start generate declaration files...
✓ built in 170ms
src/knowledge-example/knowledge-example.vue.ts:5:7 - error TS2742: The inferred type of '_sfc_main' cannot be named without a reference to '.pnpm/@[email protected]/node_modules/@vue/shared'. This is likely not portable. A type annotation is necessary.

5 const _sfc_main = /*#__PURE__*/_defineComponent({
        ~~~~~~~~~

[vite:dts] Declaration files built in 1144ms.

@azat-io
Copy link

azat-io commented May 2, 2023

The same problem

@daniel007enirman
Copy link

any solution

@qmhc
Copy link
Owner

qmhc commented Jun 27, 2023

Should be fixed in 3.0.0-beta.2.

@qmhc qmhc closed this as completed Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants