You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ vue-tsc --noEmit && vite build
node_modules/vue-scrollto/vue-scrollto.d.ts:1:9 - error TS2305: Module '"vue"' has no exported member 'DirectiveOptions'.
1 import {DirectiveOptions, PluginObject} from "vue"
~~~~~~~~~~~~~~~~
node_modules/vue-scrollto/vue-scrollto.d.ts:1:27 - error TS2305: Module '"vue"' has no exported member 'PluginObject'.
1 import {DirectiveOptions, PluginObject} from "vue"
~~~~~~~~~~~~
Found 2 errors.
error Command failed with exit code 2.
The text was updated successfully, but these errors were encountered:
The typings are for vue 2.x - you should probably exclude node_modules from type checking, or use skipLibCheck in your tsconfig.
I'm not quite sure what the best practice is when it comes to types that should work with both 2.x and 3.x - if anyone has ideas, please share, and a PR is more than welcome - as frankly I won't be able to work on the types in the near future.
I'm using vitejs and typescript and when I try to build I get this error. I tried to reinstall @types/vue-scrollto, but this error persists.
Vue version: 3.0.5;
Vitejs version: 2.3.7;
Vue-scrollto version: 2.20.0;
typescript version: 4.3.2;
The text was updated successfully, but these errors were encountered: