dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

TS unfriendly

Open hmingv opened this issue 1 year ago • 5 comments

image

hmingv avatar Feb 23 '24 08:02 hmingv

Could you please provide a minimalistic reproduction, so that I can have a look?

DamianGlowala avatar Feb 24 '24 09:02 DamianGlowala

composable type is also not recognized image

QozbroQqn avatar Sep 19 '24 08:09 QozbroQqn

composable type is also not recognized

Strange it has a type for me. When i click into the type i get: image

tcampbPPU avatar Sep 19 '24 12:09 tcampbPPU

got the same problem that "$dayjs" is not recognized via typescript in vue template

image

simonmaass avatar Oct 01 '24 14:10 simonmaass

To make it work you have to add dayjs as a dependency:

{
	"devDependencies": {
		"dayjs": "^1.11.13",
		"dayjs-nuxt": "^2.1.11"
	}
}

~/package.json

npx nuxi module add dayjs unfortunately only adds the dependency dayjs-nuxt.

JulianWowra avatar Oct 03 '24 09:10 JulianWowra