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.

Shims not working for Vue 3 + TypeScript

See original GitHub issue
  • [ x ] I have searched through existing issues
  • [ x ] I have read through docs
  • [ x ] I have read FAQ

Info

  • Platform: All (I am using Linux - Ubuntu 20.04 Budgie)
  • Vetur version: 0.27.3
  • VS Code version: 1.49.1

Problem

So this is the issue: Screenshot Issue

This is my shim for .jpeg images: Screenshot Shim

Reproducible Case

  1. Create a new vue project from the CLI with Vue 3 and TypeScript,
  2. Add a jpeg image (happens, with all image formats),
  3. Then add the screenshot’d shim in shims-jpeg.d.ts,
  4. Try and image that image into a Vue project.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dannysmc95commented, Sep 21, 2020

I have made a new repo, and tried this again on Ubuntu and it seems fine over WSL2 now, (it wasn’t yesterday) so I am not sure, but I am unable to reproduce, if I see the issue again I shall push the repo up and re-open this issue.

0reactions
octrefcommented, Sep 21, 2020

screenshot’d shim

Screenshot is not a repro case: https://github.com/vuejs/vetur/blob/master/.github/NO_REPRO_CASE.md#how-to-create-a-repro-case

And I cannot reproduce this issue: image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue instance does not pick up shims-vue.d.ts file
The only work around I've come up with is using ((this as any).$router as VueRouter).push() , but that seems pretty ugly... How can...
Read more >
Using Vue with TypeScript - Vue.js
This default setup works, but for each project we are running two TS language service instances: one from Volar, one from VSCode's built-in...
Read more >
Your first Vue 3 app using TypeScript - This Dot Labs
vue module returned is not understood by TypeScript. The solution? Define a shim or declation file at the root folder of the app....
Read more >
Building a Vue3 Typescript Environment with Vite - miyauci.me
Vite is a build tool developed by Evan You, the author of Vue. It uses native ES Module imports to provide a fast...
Read more >
How can Laravel Mix build JS files with Vue 3 + TypeScript?
I thought Vue 3 supports TypeScript, so vue-shims.d.ts file is not needed... anyway thank you for helping!!
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