vue-spa-example icon indicating copy to clipboard operation
vue-spa-example copied to clipboard

Won't run

Open shshaw opened this issue 9 years ago • 1 comments

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| 
------^

shshaw avatar Jul 28 '16 21:07 shshaw

Hi, this project is based on vue-cli, then follow this:

  1. npm install -g vue-cli
  2. vue init webpack-simple vue-spa-example
  3. npm install

toplan avatar Jul 29 '16 04:07 toplan