Giter VIP home page Giter VIP logo

vue-loader-bug's Introduction

install之后,执行npm start或者webpack,会发生编译错误。

内容为

ERROR in ./~/css-loader?sourceMap!./~/vue-loader/lib/style-rewriter.js?id=data-v-5c71072a!./~/vue-loader/lib/
selector.js?type=styles&index=0!./src/demo.vue
Module build failed: TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.relative (path.js:536:5)
    at Object.<anonymous> (D:\h\vue-loader-bug\node_modules\css-loader\lib\loader.js:101:19)
    at Array.map (native)
    at Object.<anonymous> (D:\h\vue-loader-bug\node_modules\css-loader\lib\loader.js:99:31)
    at D:\h\vue-loader-bug\node_modules\css-loader\lib\processCss.js:199:3
 @ ./~/vue-style-loader!./~/css-loader?sourceMap!./~/vue-loader/lib/style-rewriter.js?id=data-v-5c71072a!./~/
vue-loader/lib/selector.js?type=styles&index=0!./src/demo.vue 4:14-220
 @ ./src/demo.vue
 @ ./src/main.es6

去掉/src/demo.vue中的<style/>标签,可以成功编译。这时打开/index.html可以看到网页显示Hello bug

OS: Windows7

vue-loader-bug's People

Contributors

tianlin-yu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.