vue-compiler-playground
As its name
Development
- First clone this repository
- Then installation dependence:
yarn install
- Run local service:
yarn serve
⚽http://hcysun.me/vue-template-compiler-playground/
As its name
yarn install
yarn serve
您好!
首先非常感谢您提供了一个非常棒的工具!
有个问题想请教您:
我在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的问题,我一直找不出,希望您可以提供点帮助,非常感谢~
ast
and render
window the same time ?A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.