vux [Bug Report] vue cli 3.x 全局引用组件时 tools/querystring/index.js 报错

h9a6wy2h  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(127)

VUX version

2.9.2

OS/Browsers version

Mac / Chrome 69

Vue version

2.5.17

Code

https://github.com/airyland/vux/blob/v2/src/tools/querystring/index.js

var QueryString = exports;

第10行代码有问题。

Steps to reproduce

// 在入口文件全局引入

import Vue from 'vue'
import { Toast } from 'vux'

Vue.component('toast', Toast)

全局引入时会报错

What is Expected?

全局正常编译

What is actually happening?

全局正常报错

zd287kbt

zd287kbt1#

老铁,我也遇到了这个问题。。。我也发现了是QueryString暴露的方式有问题,这个issues原作者没有处理吗?你最后是怎么弄的呢?

Hi, I also encountered this problem. I also found that there was a problem with the way Query String was exposed. Didn't the original author of this issues deal with it? What did you do in the end?

相关问题