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

引用后报错 #180

Open
louisluckydoggie opened this issue Oct 8, 2018 · 6 comments
Open

引用后报错 #180

louisluckydoggie opened this issue Oct 8, 2018 · 6 comments

Comments

@louisluckydoggie
Copy link

引用后报如下错误:

Module build failed (from ./node_modules/_mini-css-extract-plugin@0.4.2@mini-css-extract-plugin/dist/loader.js):
ModuleNotFoundError: Module not found: Error: Can't resolve 'default/iconfont.eot'
@dpriest
Copy link

dpriest commented Oct 10, 2018

我这边也报错

ERROR in ./~/react-lz-editor/global/supports/resources/default/iconfont.eot
Module parse failed: /Users/dpriest/Work/projects/yun-console/console-web/src/main/front/node_modules/react-lz-editor/global/supports/resources/default/iconfont.eot Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
 @ ./~/css-loader!./~/react-lz-editor/global/supports/resources/system.css 6:82-115 6:150-183
 @ ./~/react-lz-editor/global/supports/resources/system.css
 @ ./~/react-lz-editor/editor/index.js
 @ ./~/react-lz-editor/index.js
 @ ./src/components/admin/yop/legacy/app/NewAppForm.js
 @ ./src/components/admin/yop/legacy/app/AppForm.js
 @ ./src/components/admin/yop/legacy/MarketTool.js
 @ ./src/routes.js
 @ multi (webpack)-dev-server/client?http://localhost:8001 webpack/hot/dev-server webpack-dev-server/client?http://0.0.0.0:8000/ webpack/hot/only-dev-server react-hot-loader/patch ./routes.js

ERROR in ./~/react-lz-editor/global/supports/resources/default/iconfont.ttf
Module parse failed: /Users/dpriest/Work/projects/yun-console/console-web/src/main/front/node_modules/react-lz-editor/global/supports/resources/default/iconfont.ttf Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
 @ ./~/css-loader!./~/react-lz-editor/global/supports/resources/system.css 6:299-332
 @ ./~/react-lz-editor/global/supports/resources/system.css
 @ ./~/react-lz-editor/editor/index.js
 @ ./~/react-lz-editor/index.js
 @ ./src/components/admin/yop/legacy/app/NewAppForm.js
 @ ./src/components/admin/yop/legacy/app/AppForm.js
 @ ./src/components/admin/yop/legacy/MarketTool.js
 @ ./src/routes.js
 @ multi (webpack)-dev-server/client?http://localhost:8001 webpack/hot/dev-server webpack-dev-server/client?http://0.0.0.0:8000/ webpack/hot/only-dev-server react-hot-loader/patch ./routes.js

你解决了吗?

@keji94
Copy link

keji94 commented Oct 13, 2018

同报错,这个Demo code 太不友好了,刚学react,表示各种报错,劝退

@keji94
Copy link

keji94 commented Oct 13, 2018

引用后报如下错误:

Module build failed (from ./node_modules/_mini-css-extract-plugin@0.4.2@mini-css-extract-plugin/dist/loader.js):
ModuleNotFoundError: Module not found: Error: Can't resolve 'default/iconfont.eot'

发现只在antd里面报错

@msdingzi
Copy link

我也是怎么解决

@lessaber
Copy link

lessaber commented Nov 6, 2019

配置中新增url-loader后 我的问题解决
{ test: /.(png|woff|woff2|eot|ttf|svg)$/, loader: 'url-loader?limit=100000' }

@littlefireson
Copy link

url-loader加上了,还是报错,有人解决了么?

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

No branches or pull requests

6 participants