denoland / tutorial-with-vue

Full demo dinosaur app from Deno and Vue tutorial
https://tutorial-with-vue.deno.dev/
MIT License
1 stars 1 forks source link

[Question] How to get Deno's TS config to work properly with .vue files #1

Open mmuallem opened 1 month ago

mmuallem commented 1 month ago

Hello,

I have followed this example; through the website's step-by-step, and by cloning this repo. In both cases, Deno's TS server displays linting errors when importing .vue components if they do not have a default export. Like the App.vue in this repo.

It seems there is no config in the Deno liniting to exclude this issue, nor a way to suppress it via deno's ts compilerOptions

What is the recommendation here?

Thanks!

mayorbyrne commented 1 month ago

I came here to post the same thing. ts_ls does not report the error on App.vue not having a default export, but denols does.

image
WinstonPoh commented 1 month ago

I came across the same problem. Adding a shims-vue.d.ts file as stated in this SO answer solved the build issue for me, hopefully it helps you too