element-plus-nuxt
element-plus-nuxt copied to clipboard
Cannot find module 'element-plus/es/component'
Error while requiring module @element-plus/nuxt: Error: Cannot find module 'element-plus/es/component' 00:05:06
Require stack:
Perhaps you should check if the element-plus component library is installed
Perhaps you should check if the
element-pluscomponent 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
麻烦问下 yarn 解决了吗
抱歉我没有使用yarn,我使用pnpm完全正常。
你可以检查下相关配置,例如
// .npmrc
shamefully-hoist=true
抱歉我没有使用yarn,我使用pnpm完全正常。
你可以检查下相关配置,例如
// .npmrc shamefully-hoist=true
我只有window会有这样的问题 在我的mac设备里可以跑起来。。
same question 1 . yarn remove @element-plus/nuxt 2. npm install -D @element-plus/nuxt 3. npm run dev run success
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!