devjin0617 / vue2-admin-lte

:bar_chart: adminLTE to vuejs v2.x converting project
https://devjin0617.github.io/vue2-admin-lte
MIT License
1.07k stars 324 forks source link

Can't load va script #44

Closed gadc3 closed 6 years ago

gadc3 commented 7 years ago

Hi all,

I'm now with vue. I setup the app using this library for UI. But when I import it:

import 'va/lib/css' import 'va/lib/script'

It throws out: in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./src/renderer/App.vue Module not found: Error: Can't resolve 'va/lib/css' in '/Applications/XAMPP/xamppfiles/htdocs/blogging/j14blog/src/renderer' @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./src/renderer/App.vue 2:0-20 @ ./src/renderer/App.vue @ ./src/renderer/main.js @ multi ./.electron-vue/dev-client ./src/renderer/main.js

Can you healp me please! Thanks! Ga

gadc3 commented 7 years ago

Please help @devjin0617

hersonpc commented 6 years ago

@gadaica3, Do you config webpack alias?

module.exports = {  
  resolve: {
    alias: {
      'va': 'vue2-admin-lte/src'
    }
  }
}
devjin0617 commented 6 years ago

Closed