microsoft / TypeScript-Vue-Starter

A starter template for TypeScript and Vue with a detailed README describing how to use the two together.
MIT License
4.45k stars 592 forks source link

Update deps please #50

Open ghost opened 6 years ago

ghost commented 6 years ago

Update webpack and other deps please.

UdoW commented 6 years ago

This tutorial is out-dated. This is because of using a newer version of vue-loader: See breaking changes documented here: https://vue-loader.vuejs.org/migrating.html#migrating-from-v14

I recommend to update the tutorial and use fixed versions of the dependencies and not to use the latest which would probably not wotk with the tutorial description.

For this tutorial you will get the error message (when you try to build the Hello.vue):

ERROR in ./src/components/Hello.vue Module Error (from ./node_modules/vue-loader/lib/index.js): vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config. @ ./src/index.ts 2:0-52 10:24-38

ERROR in ./src/components/Hello.vue?vue&type=script&lang=ts 29:26 Module parse failed: Unexpected token (29:26) You may need an appropriate loader to handle this file type. | }, | computed: {

    exclamationMarks(): string {

| return Array(this.enthusiasm +1).join('!'); | } @ ./src/components/Hello.vue 2:0-56 3:0-51 3:0-51 10:2-8 @ ./src/index.ts

ERROR in ./src/components/Hello.vue?vue&type=template&id=5de655f2 2:0 Module parse failed: Unexpected token (2:0) You may need an appropriate loader to handle this file type. |