Vux: DatetimePlugin 插件形式引用报错

Created on 27 Jul 2017  ·  4Comments  ·  Source: airyland/vux

import {DatetimePlugin} from 'vux'
Vue.use(DatetimePlugin)
版本: [email protected]

报错信息:

ERROR Failed to compile with 1 errors10:19:52

This relative module was not found:

  • ../../components/datetime/style.less in ./~/vux/src/plugins/datetime/index.js
componendatetime need repo(in 24 hours)

Most helpful comment

如果用vux-config跟webpackconfig合并后,会报错,所以把demo的这段复制过来了
后来我改成动态添加路由require组件,同样可以实现动态加载模块
主要目的是这个。见笑了。。
灰常感谢,已打赏

All 4 comments

无法重现,请建 repo 重现。

把这个文件改回来吧,不知道你改了是想实现什么,显然把 less 相关的改没了。
https://github.com/airyland/vux2/blob/master/template/build/utils.js

如果用vux-config跟webpackconfig合并后,会报错,所以把demo的这段复制过来了
后来我改成动态添加路由require组件,同样可以实现动态加载模块
主要目的是这个。见笑了。。
灰常感谢,已打赏

Was this page helpful?
0 / 5 - 0 ratings