dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

Uncaught SyntaxError: import not found: default

Open pmnzt opened this issue 1 year ago • 1 comments

Just installed dayjs-nuxt and added it to modules Now getting that error in the console. relevant details about the project in this repo: https://github.com/pmnzt/nuxt-dayjs-issue.

OS: Debian 12 bookworm Browser: FireFox Stable 123.0.1

pmnzt avatar Mar 07 '24 08:03 pmnzt

For anyone still getting this error, i have talked to acidjazz over on discord.. and his reply was:

try doing pnpm add -D dayjs

and that did fix the error for me.. i hadn't received anything on this issue yet. but for now that's a way to solve this issue.

pmnzt avatar Mar 17 '24 19:03 pmnzt

yes adding both is required for example package.json file:

  "devDependencies": {
    "dayjs": "^1.11.11",
    "dayjs-nuxt": "^2.1.9"
  }

tcampbPPU avatar Jul 31 '24 19:07 tcampbPPU