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.

vue-browser-acl with Vue in TS

See original GitHub issue

Hello,

How can I use vue-browser-acl with TypeScript in Vue? When I try to import ACL, I have such information:

Could not find a declaration file for module 'vue-browser-acl'. 'XXXXXXXX/node_modules/vue-browser-acl/dist/vue-browser-acl.common.js' implicitly has an 'any' type.
  Try `npm install @types/vue-browser-acl` if it exists or add a new declaration (.d.ts) file containing `declare module 'vue-browser-acl';`ts(7016)

npm install @types/vue-browser-acl == 4O4

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
mblarsencommented, May 25, 2020

I’m happy that it works for you now.

1reaction
JasonLandbridgecommented, May 25, 2020

@mblarsen, thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

mblarsen/vue-browser-acl: Easy user access control ... - GitHub
Easily manage permissions with browser-acl using rules and/or policies (rules using classes) · Adds v-can directive with simple syntax: · Optionally adds $can...
Read more >
Using Vue with TypeScript - Vue.js
To get Vue SFCs and TypeScript working together, Volar creates a separate TS language service instance patched with Vue-specific support, and uses it...
Read more >
typescript, vue, can't run jest - Stack Overflow
When I tried to find some answer in google, normally people have problem with "import" keywords, not some variable. I tried to add...
Read more >
How to use Vue 3 with TypeScript - LogRocket Blog
In this tutorial, we'll demonstrate how to build a Vue app completely in TypeScript. We'll highlight some of the benefits of using TypeScript ......
Read more >
How To Use TypeScript with Vue Single File Components
ts , and shims-vue.d.ts . Note: If you already have a Vue project created and want to add TypeScript support to it, you...
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