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

Add allowSyntheticDefaultImports #2

Closed zigomir closed 7 years ago

zigomir commented 7 years ago

to tsconfig.json, otherwise error ...node_modules/vue/types/index"' has no default export is shown.

DanielRosenwasser commented 7 years ago

Are you sure you're getting that? I thought the .d.ts was already authored with default exports.

zigomir commented 7 years ago

Yes, I'm pretty sure. I'm trying to figure out what I have different in my project compared to this repo, but even with exactly same tsconfing.json and vue-file-shims.d.ts I still get an error.

Using vscode I actually see error in my vue-file-shims.d.ts, but not in this repo. I though only tsconfig.json or compilerOptions can influence that. Where do you think I should look next?

[ts] Module '"/Users/<path>/node_modules/vue/types/index"' has no default export.
import Vue
chtitux commented 7 years ago

:+1: This is recommended by Vue : https://vuejs.org/v2/guide/typescript.html#Recommended-Configuration