Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MoLing-Dong opened this issue Jun 23, 2023 · 7 comments
Open

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

MoLing-Dong opened this issue Jun 23, 2023 · 7 comments

Comments

@MoLing-Dong
Copy link

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

@tolking
Copy link
Member

tolking commented Jun 25, 2023

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

@MoLing-Dong
Copy link
Author

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

@pocketChao
Copy link

麻烦问下 yarn
解决了吗

@tolking
Copy link
Member

tolking commented Nov 5, 2023

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

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

// .npmrc
shamefully-hoist=true

@pocketChao
Copy link

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

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

// .npmrc
shamefully-hoist=true

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

@wodepig
Copy link

wodepig commented Mar 14, 2024

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

@DeanWade9
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@DeanWade9 @pocketChao @tolking @wodepig @MoLing-Dong and others