question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unfortunately this doesn’t seem to detect Typescript code in .vue files out of the box.

To reproduce, create a basic Vue project (Vue CLI can do this), and then export something from a .ts file and import it in a .vue file. ts-prune will report it as unused.

My tsconfig.json file does include .vue files:

  "include": [
    ...
    "src/**/*.vue",
  ],

However I guess it doesn’t understand Vue single file components. They are converted to Typescript during webpack compilation by the vue-loader plugin.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Timmmmcommented, Oct 18, 2020

Yeah it seems to. I mostly fixed it in your competitor project just by changing a setting though honestly I’m not really sure how it works. Maybe something to do with isMixedContent?

0reactions
Timmmmcommented, Jan 11, 2021

Easier just to use ts-unused-exports, sorry!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Contact Pearson VUE
There are many ways to contact Pearson VUE. This page lists all of the ways to contact us so that your question can...
Read more >
Vue.js - The Progressive JavaScript Framework | Vue.js
Builds on top of standard HTML, CSS and JavaScript with intuitive API and world-class documentation. Performant. Truly reactive, compiler-optimized rendering ...
Read more >
Contact us | FAQs | Vue Cinemas
Our Vue Customer Services team are available daily between 9:00 am and 7:00 pm. Got a query or need to contact us? Just...
Read more >
Direct support from Vuetify
Vuetify is a Material Design component framework for Vue.js. ... and other Core Team members are now offering Support Services for your Vuetify...
Read more >
Support - VUEgroup
At VUE, we are committed to excellent customer support. Our dedicated in-house team are highly-skilled, fully-trained technicians; we're ready to help!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found