element-plus / element-plus-nuxt-starter

🌰 A starter example for element-plus with Nuxt 3.
https://element-plus-nuxt.vercel.app
MIT License
297 stars 82 forks source link

Error [ERR_MODULE_NOT_FOUND]: Cannot find module element-plus-nuxt-starter/node_modules/dayjs/plugin/customParseFormat #34

Open melrefaie opened 2 years ago

melrefaie commented 2 years ago

i got this error when clone this repo

what i do 1- clone 2- yarn 3- yarn dev

then i got this error

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Volumes/Data/Projects/board-v3/app/element-plus-nuxt-starter/node_modules/dayjs/plugin/customParseFormat' imported from /Volumes/Data/Projects/board-v3/app/element-plus-nuxt-starter/node_modules/element-plus/es/components/time-select/src/time-select4.mjs
Did you mean to import dayjs/plugin/customParseFormat.js?
    at new NodeError (node:internal/errors:372:5)
    at finalizeResolution (node:internal/modules/esm/resolve:437:11)
    at moduleResolve (node:internal/modules/esm/resolve:1009:10)
    at defaultResolve (node:internal/modules/esm/resolve:1218:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
    at link (node:internal/modules/esm/module_job:78:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Nuxt project info:


hzm18 commented 2 years ago

element-plus:"^2.2.5" fix it