erb: pattern.starting_with(/<%[^%]/).until_after(/[^%]%>/)
видимо, можно добавить свой вариант с правильными скобками и указывать его в командной строке.stan@home:~/projects/cash-your-pic/public/js/vue$ npm run dev
> simple-todo-app-with-vue@0.0.16 dev /home/stan/projects/cash-your-pic/public/js/vue
> node build/dev-server.js
> Starting dev server...
ERROR Failed to compile with 1 errors 9:49:14 PM
error in ./src/App.vue
Module build failed: Error:
Vue packages version mismatch:
- vue@2.5.3
- vue-template-compiler@2.5.13
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.
vue-build dev
тоже не работает, при заходе на localhost:8080Cannot GET /
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>vue</title>
<script src="./js/vue/dist/index.js"></script>
</head>
<body>
<div id="app"></div>
</body>
</html>
<template>
<div id="app">
<h1>My Todo App!</h1>
<TodoList/>
</div>
</template>
<script>
import TodoList from './components/TodoList.vue'
export default {
components: {
TodoList
}
}
</script>
<style lang="scss">
@import './variables.scss';
*, *::before, *::after {
box-sizing: border-box;
}
#app {
max-width: 400px;
margin: 0 auto;
line-height: 1.4;
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: $vue-blue;
}
h1 {
text-align: center;
}
</style>