Giter Club home page Giter Club logo

vue-template-compiler-playground's Introduction

vue-compiler-playground

As its name

Development

  • First clone this repository
  • Then installation dependence: yarn install
  • Run local service: yarn serve

vue-template-compiler-playground's People

Contributors

hcysunyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vue-template-compiler-playground's Issues

warning in ./node_modules/codemirror/mode/rpm/changes/index.html

您好!
首先非常感谢您提供了一个非常棒的工具!
有个问题想请教您:
我在yarn serve时抛出了一个错误,如下:

warning in ./node_modules/codemirror/mode/rpm/changes/index.html

Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
> <!doctype html>
|
| <title>CodeMirror: RPM changes mode</title>

 @ ./node_modules/codemirror/mode lazy ^\.\/.*$ namespace object
 @ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/com
ponents/editor/editor.vue?vue&type=script&lang=js&
 @ ./src/components/editor/editor.vue?vue&type=script&lang=js&
 @ ./src/components/editor/editor.vue
 @ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/App
.vue?vue&type=script&lang=js&
 @ ./src/App.vue?vue&type=script&lang=js&
 @ ./src/App.vue
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://192.168.0.181:8081/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

但是,我把下面那行import去掉后,在<script>最开头添加import(codemirror/mode/vue/vue.js) 就可以运行了

loadMode (mode) {
      // return import(`codemirror/mode/${mode}/${mode}`) 
    },

后来我把node_modules/codemirror/mode/rpm/changes/index.html这个文件删除后也可以正常运行。

这里具体的原因究竟是webpack某些loader引起的还是codemirror的问题,我一直找不出,希望您可以提供点帮助,非常感谢~

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.