vux2导入组件方式问题

Created on 13 Jan 2017  ·  2Comments  ·  Source: airyland/vux

按照教程下载代码过后, 执行完安装过程, 然后

npm run dev

可以正常运行. 然后在components里导入了vux组件的地方把如下代码中的单引号

import { Group, Cell } from 'vux'

改为双引号:

import { Group, Cell } from "vux"

报错:

failed to compile with 1 errors

this dependency was not found in node_modules:
 vux
vux-loader

Most helpful comment

对。vux-loader 暂时只解析了单引号的,因为这也是eslint规范。下个小版本修复兼容一下。

All 2 comments

对。vux-loader 暂时只解析了单引号的,因为这也是eslint规范。下个小版本修复兼容一下。

Fixed in ^[email protected]

Was this page helpful?
0 / 5 - 0 ratings