stackblitz / core

Online IDE powered by Visual Studio Code ⚡️
https://stackblitz.com
MIT License
10.31k stars 918 forks source link

Cannot find package 'element-plus' even though installed #1506

Open tony19 opened 3 years ago

tony19 commented 3 years ago

Description of Bug

I installed element-plus and tried to import it, but StackBlitz throws this error:

Can't find package: element-plus

I also tried clicking the "Install Package: element-plus" button that's presented, but to no avail.

https://stackblitz.com/edit/stackblitz-element-plus-bug-demo

Steps to Reproduce

  1. Open Vue 3 Starter project.
  2. Add element-plus through the Dependencies panel on the left.
  3. In src/main.js, add this code:
import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';
  1. See the error in the preview panel.

Expected Behavior

The element-plus package is found and no error occurs.

Screenshots/Screencast

Screen Shot 2021-06-14 at 3 15 05 PM

Additional Context/Questions

Jogiter commented 2 years ago

got same error

image image