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

Can't load vue from webpack alias #25

Closed herozhou closed 7 years ago

herozhou commented 7 years ago

I cant get vue 'vue/types/index' from like this,

//main.ts 

import vue from 'vue'

But I want to use some vue plugin ,so I have to use vue from 'vue/dist/vue.esm.js'
.Not from 'vue/types/index'。I add webpack alias but it doesn't work. image

image

How cant I use both vue (js and ts) in my project ?

herozhou commented 7 years ago

and some error like this

image

DanielRosenwasser commented 7 years ago

Sorry about the delay here; I bellieve you need to use allowSyntheticDefaultImports for this to work.