Open Atala opened 4 years ago
@Atala please show your sequences-list.ts
content,
your tsconfig.js
and webpack.config.js
.
Hi @Atala,
From what I understand it happens when you don't have a <script lang="ts">...</script>
with a default export in your .vue
file.
Adding the vue-shim.d.ts
file makes it so you don't have to create a block that only contains import Vue from "vue"; export default Vue;
in SFCs that are not associated to any script.
Since Encore does not add any file to projects using it (at least for now) maybe that should indeed be documented somewhere.
I think that may be the case. Not 100% sure + I don't have example files because I was moving things around at the time. Sorry :(
I'll let you decide if it is worth to add to your docs (IMHO it is worth to add it in the vue.js section)
For Vue 3 the contents of vue-shim.d.ts
should be:
declare module '*.vue';
Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?
Hi ,
I am using vue + typescript. Thanks for your PR #484. On my project it didn't work out of the box, I needed to add a typescript definition file in my project (as stated here https://github.com/Microsoft/TypeScript-Vue-Starter#single-file-components)
I could not build before :
I have a low level of Vue understanding (well I am setting up my first project), but it maybe interesting to add it into the docs.
[EDIT] : actually it may be because of this, https://fr.vuejs.org/v2/guide/typescript.html#Utilisation-de-base , so maybe it is worth mentionning ?
cc @Lyrkan