element-plus-nuxt icon indicating copy to clipboard operation
element-plus-nuxt copied to clipboard

Cannot find module 'element-plus/es/component'

Open MoLing-Dong opened this issue 2 years ago • 7 comments

Error while requiring module @element-plus/nuxt: Error: Cannot find module 'element-plus/es/component' 00:05:06
Require stack:

MoLing-Dong avatar Jun 23 '23 16:06 MoLing-Dong

Perhaps you should check if the element-plus component library is installed

tolking avatar Jun 25 '23 02:06 tolking

Perhaps you should check if the element-plus component library is installed

I installed it, and this error pops up after I install something else with yarn, and then I have to reinstall it with npm install before I can start the project

MoLing-Dong avatar Jun 25 '23 14:06 MoLing-Dong

麻烦问下 yarn 解决了吗

pocketChao avatar Nov 04 '23 14:11 pocketChao

抱歉我没有使用yarn,我使用pnpm完全正常。

你可以检查下相关配置,例如

// .npmrc
shamefully-hoist=true

tolking avatar Nov 05 '23 02:11 tolking

抱歉我没有使用yarn,我使用pnpm完全正常。

你可以检查下相关配置,例如

// .npmrc
shamefully-hoist=true

我只有window会有这样的问题 在我的mac设备里可以跑起来。。

pocketChao avatar Jan 07 '24 03:01 pocketChao

same question 1 . yarn remove @element-plus/nuxt 2. npm install -D @element-plus/nuxt 3. npm run dev run success

wodepig avatar Mar 14 '24 02:03 wodepig

same question 1 . yarn remove @element-plus/nuxt 2. npm install -D @element-plus/nuxt 3. npm run dev run success

thank you, worked fine for me!

DeanWade9 avatar Apr 04 '24 14:04 DeanWade9