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

ng-zorro-antd 0.7.0 icon deploy locally error #1605

Closed
NG-GGBond opened this issue Jun 5, 2018 · 2 comments
Closed

ng-zorro-antd 0.7.0 icon deploy locally error #1605

NG-GGBond opened this issue Jun 5, 2018 · 2 comments

Comments

@NG-GGBond
Copy link

Version

0.7.1

Environment

win10 64、chrome65

Reproduction link

https://ng-zorro-antd-setup.stackblitz.io/

Steps to reproduce

@icon-url : "./assets/iconfont";

What is expected?

icon deploy locally

What is actually happening?

ERROR in ./src/styles.less (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/less-loader/dist/cjs.js??ref--15-3!./src/styles.less)
(Emitted value instead of an instance of Error)

8 | src:
9 | /* chrome、firefox */

10 | url('@{icon-url}.woff') format('woff'),
| ^
11 | /* chrome、firefox、opera、Safari, Android, iOS 4.2 */
12 | url('@{icon-url}.ttf') format('truetype'),

10 | url('@{icon-url}.woff') format('woff'),
11 | /* chrome、firefox、opera、Safari, Android, iOS 4.2 */

12 | url('@{icon-url}.ttf') format('truetype'),
| ^
13 | /* iOS 4.1- */
14 | url('@{icon-url}.svg#iconfont') format('svg');

5 | @font-face {
6 | font-family: 'anticon';

7 | src: url('@{icon-url}.eot'); /* IE9*/
| ^
8 | src:
9 | /* chrome、firefox */

Other?

123
1

@vthinkxie
Copy link
Member

vthinkxie commented Jun 5, 2018

less环境问题,和ng-zorro-antd没有任何关系,请仔细检查本地配置和相对路径
./assets/assets 的意思是完全不同的,请注意相对路径和绝对路径之间的关系

@lock
Copy link

lock bot commented Jun 5, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants