vue-spa-example
vue-spa-example copied to clipboard
Won't run
When running npm run dev, these errors occur:
ERROR in ./src/App.vue
error Parsing error: Unexpected token <
/vue-spa-example-master/src/App.vue:1:1
<template>
^
✖ 1 problem (1 error, 0 warnings)
ERROR in ./src/components/style.vue
error Parsing error: Unexpected token <
/vue-spa-example-master/src/components/style.vue:1:1
<style lang="stylus">
^
✖ 1 problem (1 error, 0 warnings)
ERROR in ./~/css-loader!./~/vue-loader/lib/style-rewriter.js!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=style&index=0!./src/components/style.vue
Module build failed: TypeError: /vue-spa-example-master/src/components/style.vue:4:1
1|
2| @import "../stylus/variables.styl";
3| @import "../stylus/iScroll.styl";
4|
------^
Hi, this project is based on vue-cli, then follow this:
- npm install -g vue-cli
- vue init webpack-simple vue-spa-example
- npm install