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] 1.2.0-beta.4 Error - Cannot find module 'element-plus/es/utils/types' #4591

Closed
zhiwwang opened this issue Nov 30, 2021 · 2 comments · Fixed by #4598
Closed

[Bug Report] 1.2.0-beta.4 Error - Cannot find module 'element-plus/es/utils/types' #4591

zhiwwang opened this issue Nov 30, 2021 · 2 comments · Fixed by #4598

Comments

@zhiwwang
Copy link

Element Plus version

1.2.0-beta.4

OS/Browsers version

Any

Vue version

3.2.23

Reproduction Link

https://jsfiddle.net/

Steps to reproduce

//bash

yarn add element-plus

//main.ts

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
createApp(App).use(ElementPlus)

//bash

build

element-plus@1.2.0-beta.4/es/utils/types.d.ts File does not exist on npm and all cdn.
Only types.mjs and types.mjs.map files exist

What is Expected?

Done

What is actually happening?

error TS2307: Cannot find module 'element-plus/es/utils/types' or its corresponding type declarations.

@zhiwwang
Copy link
Author

截屏2021-11-30 18 25 02

@emojiiii
Copy link
Contributor

duplicate #4558

@sxzz sxzz linked a pull request Nov 30, 2021 that will close this issue
3 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants