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

[Bug Report] types error #4531

Closed
bowencool opened this issue Nov 25, 2021 · 5 comments · Fixed by #4696
Closed

[Bug Report] types error #4531

bowencool opened this issue Nov 25, 2021 · 5 comments · Fixed by #4696
Assignees
Labels
has PR has workaround Quality::TypeScript Related this issue is related to type definition 🔨 Vue issue Issue caused by Vue. Can't do anything

Comments

@bowencool
Copy link

bowencool commented Nov 25, 2021

Element Plus version

1.2.0-beta.3

OS/Browsers version

mac 12

Vue version

3.2.22

Reproduction Link

https://github.com/element-plus/element-plus/

Steps to reproduce

npx vue-tsc --noEmit

What is Expected?

no error

What is actually happening?

node_modules/element-plus/es/components/index.d.ts:1:15 - error TS2307: Cannot find module './affix' or its corresponding type declarations.

1 export * from './affix';
                ~~~~~~~~~

node_modules/element-plus/es/components/index.d.ts:51:15 - error TS2307: Cannot find module './slider' or its corresponding type declarations.

51 export * from './slider';
                 ~~~~~~~~~~

node_modules/element-plus/es/tokens/config-provider.d.ts:1:42 - error TS2307: Cannot find module 'element-plus/es/components/config-provider/config-provider' or its corresponding type declarations.

1 import type { configProviderProps } from 'element-plus/es/components/config-provider/config-provider';
                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ssw1992
Copy link

ssw1992 commented Nov 25, 2021

I meet the same problem in the latest version

@callmeyan
Copy link

me too

1 similar comment
@Xu-158
Copy link

Xu-158 commented Nov 26, 2021

me too

@sxzz
Copy link
Collaborator

sxzz commented Nov 27, 2021

You can use "skipLibCheck": true for now.

@sxzz sxzz added has workaround Quality::TypeScript Related this issue is related to type definition labels Nov 27, 2021
@sxzz
Copy link
Collaborator

sxzz commented Nov 30, 2021

Waiting for #4598 and vuejs/core#5026

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
has PR has workaround Quality::TypeScript Related this issue is related to type definition 🔨 Vue issue Issue caused by Vue. Can't do anything
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants