vuejs-toggle-switch icon indicating copy to clipboard operation
vuejs-toggle-switch copied to clipboard

Could not find a declaration file for module 'vuejs-toggle-switch'.

Open ultimaustin opened this issue 1 year ago • 0 comments

Expected Behavior

Build Vue 3 application lceanly with components importing vuejs-toggle-switch

Actual Behavior

When I add this import to a Vue 3 setup script I get this error Could not find a declaration file for module 'vuejs-toggle-switch'. '<path_to_my_project>/node_modules/vuejs-toggle-switch/dist/vuejs-toggle-switch.js' implicitly has an 'any' type.

Steps to Reproduce the Problem

  1. npm install vuejs-toggle-switch --save
  2. add this to a vue 3 component import { ToggleSwitch } from 'vuejs-toggle-switch'
  3. Run a production build: npm run build

Specifications

  • Package version: ^3.0.6
  • VueJS Version: ^3.3.2
  • VITE v4.3.6

ultimaustin avatar Jul 14 '23 15:07 ultimaustin