vuejs-toggle-switch
vuejs-toggle-switch copied to clipboard
Could not find a declaration file for module 'vuejs-toggle-switch'.
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
- npm install vuejs-toggle-switch --save
- add this to a vue 3 component import { ToggleSwitch } from 'vuejs-toggle-switch'
- Run a production build: npm run build
Specifications
- Package version: ^3.0.6
- VueJS Version: ^3.3.2
- VITE v4.3.6