Element: [Bug Report] Cannot find module "/lib/theme-default/index.css" in package [email protected]

Created on 31 Oct 2017  ·  2Comments  ·  Source: ElemeFE/element

Element UI version

2.0.2

OS/Browsers version

MacOS/ Chrome 61.0.3163.100

Vue version

2.5.2

Reproduction Link

https://jsfiddle.net/pj71jkyw/

Steps to reproduce

Open dev tools and you'll notice -> GET https://unpkg.com/[email protected]/lib/theme-default/index.css net::ERR_ABORTED

What is Expected?

GET https://unpkg.com/[email protected]/lib/theme-default/index.css should load. Tried older version of the library but problem stills.

What is actually happening?

GET https://unpkg.com/[email protected]/lib/theme-default/index.css net::ERR_ABORTED
Cannot find module "/lib/theme-default/index.css" in package [email protected]

Most helpful comment

import 'element-ui/lib/theme-chalk/index.css'

All 2 comments

import 'element-ui/lib/theme-chalk/index.css'

Thanks @psychokiller666 , that worked.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dbskccc picture dbskccc  ·  3Comments

no5no6 picture no5no6  ·  3Comments

yuchonghua picture yuchonghua  ·  3Comments

EdenSpark picture EdenSpark  ·  3Comments

akaylh picture akaylh  ·  3Comments