bailicangdu / vue2-happyfri

vue2 + vue-router + vuex 入门项目
MIT License
10.49k stars 2.9k forks source link

fix vulnerabilities issues & image loading issue #100

Closed Shun2014 closed 5 years ago

Shun2014 commented 5 years ago
  1. fix vulnerabilities issues

    found 7 vulnerabilities (5 moderate, 1 high, 1 critical)
    run `npm audit fix` to fix them, or `npm audit` for details
  2. fix image loading issue at runtime

npm run dev

> happyfri@1.0.2 dev E:\workspace\vue\vue2VueRouterVuexExample
> node build/dev-server.js

Listening at http://localhost:8088

webpack built 709705647cea3ec43a5d in 2295ms
Hash: 709705647cea3ec43a5d
Version: webpack 1.15.0
Time: 2295ms
     Asset     Size  Chunks       Chunk Names
    app.js  1.68 MB       0       app
 1.item.js   104 kB       1       item
 2.home.js   104 kB       2       home
3.score.js  65.6 kB       3       score

ERROR in ./src/images/4-4.png
Module build failed: Error: emitFile is required from module system
    at Object.module.exports (E:\workspace\vue\vue2VueRouterVuexExample\node_modules\file-loader\index.js:9:27)
    at Object.loader (E:\workspace\vue\vue2VueRouterVuexExample\node_modules\url-loader\dist\index.js:76:19)
 @ ./~/vue-loader/lib/template-compiler.js?id=data-v-f3db88c8!./~/vue-loader/lib/selector.js?type=template&index=0!./src/page/score/index.vue 42:13-44

ERROR in ./src/images/4-2.png
Module build failed: Error: emitFile is required from module system
    at Object.module.exports (E:\workspace\vue\vue2VueRouterVuexExample\node_modules\file-loader\index.js:9:27)
    at Object.loader (E:\workspace\vue\vue2VueRouterVuexExample\node_modules\url-loader\dist\index.js:76:19)
 @ ./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-f3db88c8!./~/less-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/page/score/index.vue 6:215-246

ERROR in ./src/images/1-2.png
Module build failed: Error: emitFile is required from module system
    at Object.module.exports (E:\workspace\vue\vue2VueRouterVuexExample\node_modules\file-loader\index.js:9:27)
    at Object.loader (E:\workspace\vue\vue2VueRouterVuexExample\node_modules\url-loader\dist\index.js:76:19)
 @ ./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-3a4bf6c8!./~/less-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/itemcontainer.vue 6:701-729

ERROR in ./src/images/1-1.jpg
Module build failed: Error: emitFile is required from module system
    at Object.module.exports (E:\workspace\vue\vue2VueRouterVuexExample\node_modules\file-loader\index.js:9:27)
    at Object.loader (E:\workspace\vue\vue2VueRouterVuexExample\node_modules\url-loader\dist\index.js:76:19)
 @ ./~/css-loader!./~/less-loader!./src/style/common.less 6:938-966

ERROR in ./src/images/4-1.jpg
Module build failed: Error: emitFile is required from module system
    at Object.module.exports (E:\workspace\vue\vue2VueRouterVuexExample\node_modules\file-loader\index.js:9:27)
    at Object.loader (E:\workspace\vue\vue2VueRouterVuexExample\node_modules\url-loader\dist\index.js:76:19)
 @ ./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-f3db88c8!./~/less-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/page/score/index.vue 6:64-95
Child html-webpack-plugin for "index.html":
         Asset     Size  Chunks       Chunk Names
    index.html  1.47 MB       0
webpack: Failed to compile.