Element: [Bug Report] icon does not exist in version 2.8.2

Created on 26 Apr 2019  ·  11Comments  ·  Source: ElemeFE/element

Element UI version

2.8.2

OS/Browsers version

chrome73

Vue version

2.6.10

Reproduction Link

https://codepen.io/anon/pen/wZRRGW?&editable=true

Steps to reproduce

在element-ui2.8.2版本上写个

What is Expected?

显示icon

What is actually happening?

没有显示icon

Most helpful comment

Is there any solution to this problem jet? We are running into the same issue after updating from version 2.4.11 to 2.11.1 any help would be appreciated.

All 11 comments

Translation of this issue:

Element UI version

2.8.2

OS/Browsers version

Chrome73

Vue version

2.6.10

Reproduction Link

Https://codepen.io/anon/pen/wZRRGW?&editable=true

Steps to reproduce

Write on element-ui2.8.2

What is Expected?

Display icon

What is actually happening?

No icon displayed

@lilu1814 2.8.2版本貌似没有这个icon了
https://element.eleme.io/#/zh-CN/component/icon

el-icon-circle-check

the new icons exceed the size limit of webpack url-loader .
I think the problem is in file-loader publicPath.

I had the same problem after upgrading to 2.8.2. Icons were not loading/showing.
Solved after clean install...

rm -rf node_modules/
npm install

To me it looks like the generated path to the icon files is wrong.

_npm run build_ generates element-icons.ttf and element-icons.woff
in dist/static/fonts/
but they are expected to be loaded from /dist/static/css/static/fonts/ which leads to a 404 error while loading the page.
GET [myDomain]/dist/static/css/static/fonts/element-icons.535877f.woff net::ERR_ABORTED 404

@lilu1814 2.8.2版本貌似没有这个icon了
https://element.eleme.io/#/zh-CN/component/icon

To me it looks like the generated path to the icon files is wrong.

_npm run build_ generates element-icons.ttf and element-icons.woff
in dist/static/fonts/
but they are expected to be loaded from /dist/static/css/static/fonts/ which leads to a 404 error while loading the page.
GET [myDomain]/dist/static/css/static/fonts/element-icons.535877f.woff net::ERR_ABORTED 404

so have you solve this problem yet?

As a quick 'n dirty workaround I simply copied the icon files to the expected location at the target server.
This works fine, until I'll update element-ui's version where the error will be fixed.

Is there any solution to this problem jet? We are running into the same issue after updating from version 2.4.11 to 2.11.1 any help would be appreciated.

This seems not to be fixed yet!

Was this page helpful?
0 / 5 - 0 ratings