vue.jsprimevue

Can not customize PrimeVue theme with vue.js app when using TypeScript


I would like to customize PrimeVue theme in my vue.js app. So I need to have import like this in my main.ts file: import { definePreset } from '@primevue/themes'. It works fine when not using typeScript in my app but when I install TypeScript an error occures: "Module '"@primevue/themes"' has no exported member 'definePreset'." Idk how to solve it...

Simple samples:


Solution

  • As advised by Estus Flask, when I updated Typescript (to v. 5.6.3) the problem is solved.