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.

when use it in typescript ,it cannot be recognized correctly

See original GitHub issue

image

My temporary solution is:

// shims-vue.d.ts
declare module "*.vue" {
    import { defineComponent } from "vue";
    const component: ReturnType<typeof defineComponent>;
    export default component;
}
// add
declare module "vue-draggable-next" {
    export { VueDraggableNext } from "vue-draggable-next/dist/src/index";
}

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
anish2690commented, Sep 19, 2020

@bigmeow is something I have it on my plan for timing just use declare module 'vue-draggable-next'

1reaction
joel785454405commented, Sep 15, 2020

Just write like this👇

declare module ‘vue-draggable-next’;

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript compiler doesn't recognize that an object entry ...
The behaviour you want is that of the noUncheckedIndexedAccess flag, which you can enable on the command-line or in your tsconfig.json file.
Read more >
Function param with generic type are not recognized correctly
I don't see a compile error in any of typescript@2.6 , typescript@2.7 , typescript@next . Protocol is an empty type, so almost anything...
Read more >
Documentation - Narrowing - TypeScript
TypeScript follows possible paths of execution that our programs can take to analyze the most specific possible type of a value at a...
Read more >
False errors in Typescript files, import statements are not ...
False errors in Typescript files, import statements are not correctly recognized ... While working with Typescript I import dependencies from other files.
Read more >
TypeScript tutorial with Visual Studio Code
Visual Studio Code includes TypeScript language support but does not include the TypeScript compiler, tsc . You will need to install the TypeScript...
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