Element: [Bug Report] Something wrong when import components on demand with typescript

Created on 20 Nov 2017  ·  6Comments  ·  Source: ElemeFE/element

Element UI version

2.0.5

OS/Browsers version

Chrome 62.0

Vue version

2.5.6

Reproduction Link

https://jsfiddle.net/api/post/library/pure/

Steps to reproduce

Use [email protected] [email protected] to set up project, import element-ui components on demand.

What is Expected?

  1. import the corresponding css automatically
  2. when build, there should only include the components imported on demand

What is actually happening?

  1. no css at all
  2. packaged the whole element-ui
stale

Most helpful comment

Can element-ui import components on demand without babel-plugin-component, but only with ts-loader?

All 6 comments

Hi, your JSFiddle page is blank because it seems you forgot to click the Save button. Please save your fiddle and then edit this issue with the new link.

Could you see if #8068 helps?

@Leopoldthecoder No, the problem mentioned in #8068 has fixed in 2.0.5,but there are others

Can element-ui import components on demand without babel-plugin-component, but only with ts-loader?

Is this resolved? Cause Im actually experiencing the same this and its 2018. The issue is event I just:
import {Button} from 'element-ui'
but ALL the other components are still there. like
this.$notify
this conflict other library that I use with the same instance I want to remove this. help?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chao-hua picture chao-hua  ·  3Comments

yorululu picture yorululu  ·  3Comments

yubo111 picture yubo111  ·  3Comments

fscardua picture fscardua  ·  3Comments

smallpath picture smallpath  ·  3Comments