Using vux with webpacker gem
- 主要言語
- Vue
- スター
- 17.5k
- フォーク
- 3.6k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hello!
I'm aware that it's not a best place to post a question like this (as it's not directly a fault of vux i suppose) but i'm gonna try anyway :)
I have troubles setting up vux with Ruby on Rails app using webpacker gem. I followed your getting started guide and added a webpack vux loader config to my general webpack config file but webpack started to throw exceptions. Here is my webpack config:
https://github.com/mbajur/hcpl/blob/mobile/config/webpack/environment.js
```
const { environment } = require('@rails/webpacker')
const vuxLoader = require('vux-loader')
module.exports = vuxLoader.merge(environment, {
plugins: ['vux-ui']
})
// This was originally exported by this file
// module.exports = environment
```
And webpack raises:
```
TypeError: environment.plugins.push is not a function
at Object. (/Volumes/SUPPORT/Workspace/Personal/hcpl/config/webpack/environment.js:9:21)
at Module._compile (module.js:641:30)
at Object.Module._extensions..js (module.js:652:10)
at Module.load (module.js:560:32)
at tryModuleLoad (module.js:503:12)
at Function.Module._load (module.js:495:3)
at Module.require (module.js:585:17)
at require (internal/module.js:11:18)
at Object. (/Volumes/SUPPORT/Workspace/Personal/hcpl/config/webpack/development.js:1:83)
at Module._compile (module.js:641:30)
```
That might be an obvious issue but i'm not too good at webpack yet so i have no idea which fault is that (mine, vux-loader or webpacker) so i also don't know where should i post such question. I decided to start here.
The good part is that i'm definitely gonna write some tiny tutorial on how to integrate vux with rails/webpacker for future usage.
Thanks in advance!
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。