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]issue of ElementUiResolver, Failed to resolve import "element-ui/lib/image-viewer" #745

Open
3 tasks done
wangermaizi opened this issue Mar 20, 2024 · 1 comment
Open
3 tasks done
Labels
enhancement New feature or request

Comments

@wangermaizi
Copy link

Clear and concise description of the problem

I'm having some issues with ElementUiResolver, When I want to import the image preview component el-image-viewer in element, it says that the import failed and the file cannot be found
using version is
"element-ui": "^2.15.14", "vue": "^2.7.16", "unplugin-vue-components": "^0.22.12", "vite": "5.1.4",
my import methods is
components: { 'el-image-viewer':()=>import('element-ui/packages/image/src/image-viewer.vue') },
image

Suggested solution

ElementUiResolver should be support el-image-viewer component

Alternative

No response

Additional context

No response

Validations

@wangermaizi wangermaizi added the enhancement New feature or request label Mar 20, 2024
@wangermaizi
Copy link
Author

When I comment out the import component, I get another error
components: { // 'el-image-viewer':()=>import('element-ui/packages/image/src/image-viewer.vue') }
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant