npm-check icon indicating copy to clipboard operation
npm-check copied to clipboard

Vue + TS = nothing is recognised

Open kodi opened this issue 6 years ago • 4 comments

Since vue-cli 3.0, you can bootstrap vue project, and write it entirely in TS. The problem is that npm-check cannot detect that any package is being used.

Any chance of getting the support, at least via custom extension *.vue param, or something?

kodi avatar May 16 '18 09:05 kodi

I'd be open to adding .vue to standard extensions, are they JavaScript files?

LinusU avatar May 16 '18 10:05 LinusU

Thats the catch, they are bit more complex.

https://vuejs.org/v2/guide/single-file-components.html

On Wed, 16 May 2018, 12:27 Linus Unnebäck, [email protected] wrote:

I'd be open to adding .vue to standard extensions, are they JavaScript files?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dylang/npm-check/issues/290#issuecomment-389471794, or mute the thread https://github.com/notifications/unsubscribe-auth/AADH0WYcPVly3vmfIuyKo4O--PRhjTLMks5ty_8pgaJpZM4UA6ya .

kodi avatar May 16 '18 10:05 kodi

Seems like there is an open PR to depcheck, if that lands we could probably support it

https://github.com/depcheck/depcheck/pull/254

LinusU avatar May 16 '18 10:05 LinusU

The linked PR is merged; what needs to be done to add support for .vue files to npm-check?

FloEdelmann avatar Feb 21 '23 13:02 FloEdelmann