V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
100990222
V2EX  ›  Vue.js

element-ui 引入 index.css 文件报错: Uncaught Error: Cannot find module "element-ui/lib/theme-default/index.css"

  •  1
     
  •   100990222 · 2017-01-05 16:30:29 +08:00 · 8833 次点击
    这是一个创建于 2666 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我安装了 css-loader style-loader file-loader webpack 加载器 配置如下:

    { test: /.css$/, loader: 'style-loader!css-loader' }, { test: /.(eot|svg|ttf|woff|woff2)(?\S*)?$/, loader: 'file-loader' }, { test: /.(png|jpg|gif|svg)$/, loader: 'file-loader', options: { name: '[name].[ext]?[hash]' } }

    mani.js 引入 import 'element-ui/lib/theme-default/index.css';

    控制台报错: Uncaught Error: Cannot find module "element-ui/lib/theme-default/index.css"

    这是什么原因呢?

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5917 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 02:04 · PVG 10:04 · LAX 19:04 · JFK 22:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.