mazipan / vue2-simplert

⚠️ Vue 2 Simple Alert Component (SweetAlert Inspired)
https://vue2-simplert.gitbook.io/docs/
MIT License
214 stars 31 forks source link

Installation issue - Module not found: Error: Can't resolve 'scss-loader' #31

Closed ericlie closed 7 years ago

ericlie commented 7 years ago

Hi,

Tried to install your wonderful package but error occurs as follow:

{ [Error: ./~/vue2-simplert/src/components/simplert/index.vue
Module not found: Error: Can't resolve 'scss-loader' in '/var/www/html/project/node_modules/vue2-simplert/src/components/simplert'
resolve 'scss-loader' in '/var/www/html/project/node_modules/vue2-simplert/src/components/simplert'
  Parsed request is a module
  using description file: /var/www/html/project/node_modules/vue2-simplert/package.json (relative path: ./src/components/simplert)
  after using description file: /var/www/html/project/node_modules/vue2-simplert/package.json (relative path: ./src/components/simplert)
    resolve as module
      module variation scss-loader-loader

I am using Laravel 5.3 and here is my package.json:

{
  "private": true,
  "scripts": {
    "prod": "gulp --production",
    "dev": "gulp watch"
  },
  "devDependencies": {
    "axios": "^0.15.3",
    "bootstrap-sass": "^3.3.7",
    "gulp": "^3.9.1",
    "jquery": "^3.1.0",
    "laravel-elixir": "^6.0.0-9",
    "laravel-elixir-vue-2": "^0.2.0",
    "laravel-elixir-webpack-official": "^1.0.2",
    "lodash": "^4.17.4",
    "vue": "^2.1.10",
    "vue-resource": "^1.0.3"
  },
  "dependencies": {
    "laravel-echo": "^1.2.5",
    "node-sass": "^4.5.3",
    "pusher-js": "^4.0.0",
    "sass-loader": "^6.0.6",
    "scss-loader": "0.0.1",
    "vue2-dropzone": "^2.3.5",
    "vue2-simplert": "^0.3.0"
  }
}

My node's version is v8.0.0 and npm is 5.0.0

I did run npm install node-sass scss-loader --save and it does not work

please do assist

Regards

mazipan commented 7 years ago

This is because I set main script to .vue file that need transpile first to js file. In the next day, I hope can solve your problem after set my webpack configuration to be can use by your project.

May I know, how you use .vue file ? Using gulp for transpile ? Or using es5 ?

ericlie commented 7 years ago

Hi @mazipan I am using gulp to build all my vues

mazipan commented 7 years ago

Do you mind to using version 0.4.0 @ericlie ?

mazipan commented 7 years ago

Is still happen @ericlie ? may I close this issue ?

mazipan commented 7 years ago

Just feel free to re-open