dayjs
dayjs copied to clipboard
TS unfriendly
Could you please provide a minimalistic reproduction, so that I can have a look?
composable type is also not recognized
composable type is also not recognized
Strange it has a type for me. When i click into the type i get:
got the same problem that "$dayjs" is not recognized via typescript in vue template
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.