-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Uncaught (in promise) SyntaxError: The requested module '/@modules/element-plus.js' does not provide an export named 'ElMessage' #667
Comments
This might be Vite bug, ref here vitejs/vite#837. You can use Webpack bundle at this moment before Vite fix it. |
import { ElMessage } from 'element-plus'; TypeScript Tips:
Other: import { ElNotification } from 'element-plus';
.
.
.
import { El*** } from 'element-plus'; TypeScript Tips:
|
fixed in 1.0.1-alpha.23 you can use
|
still not fixed |
fixed in #577 please use |
https://element-plus.org/#/en-US/component/message
Local import
import { ElMessage } from 'element-plus';
error: Uncaught (in promise) SyntaxError: The requested module '/@modules/element-plus.js' does not provide an export named 'ElMessage'
if using
import ElMessage from 'element-plus/lib/el-message';
error: Uncaught (in promise) SyntaxError: The requested module '/@modules/element-plus/lib/utils/util.js' does not provide an export named 'isVNode'
The text was updated successfully, but these errors were encountered: