Tencent / wepy

小程序组件化开发框架
https://wepyjs.gitee.io/wepy-docs/
Other
22.48k stars 3.06k forks source link

wepy/x 不支持modules #2191

Open fengrunda opened 5 years ago

fengrunda commented 5 years ago

Description

[问题描述:wepy/x不支持使用modules]

Environment

Reproduce

[如何重现问题] store.js

import wepy from '@wepy/core'
import Vuex from '@wepy/x'
import user from './modules/user'
import i18n from './modules/i18n'
wepy.use(Vuex)
const store = new Vuex.Store({
  modules: {
    user: user,
    i18n: i18n
  }
})
export default store

Observed Results

[实际表现] image image

Expected Results

[期望表现]

希望wepy/x能使用modules

Gcaufy commented 5 years ago

感谢你的问题,我修复处理了一个,你可以先用 packages/core/dist/wepy.js 文件先用着看看。

hezzze commented 5 years ago

碰到了同样问题,这个修复还没release是吗? @Gcaufy

iweijie commented 5 years ago

刚遇到 ...

kampiu commented 4 years ago

这个问题有点严重,用不了模块,我也很着急。

kampiu commented 4 years ago

感谢你的问题,我修复处理了一个,可以你先用packages/core/dist/wepy.js文件先用关系着看看。

我想问这个问题什么时候能修复,项目的庞大状态的臃肿,让我不得不使用模块的方式去管理。

Gcaufy commented 4 years ago

vuex 的 modules 暂时还无法使用。已定位到原因。但是还没有想到比较好的解决方案。

garfieldchen commented 4 years ago

加油,没有modules @wepy/x都不敢用了

hdsuperman commented 4 years ago

请问这个问题现在解决了吗~

hdsuperman commented 4 years ago

@Gcaufy