-
Notifications
You must be signed in to change notification settings - Fork 302
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
🐛 [Bug]: 引入第三方插件elementplus报错,按照文档在bundle.json中配置了element-plus的相关组件,但是在渲染的时候报错“Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../" #179
Comments
@traveler-h 无法复现,请提供更详细的复现步骤与细节 |
@traveler-h Unable to reproduce, please provide more detailed reproduction steps and details |
default.mp4 |
视频是在拉取了develop最新代码之后的操作 未做任何的修改 @chilingling |
The video is the operation after pulling the latest code of develop without any modification @chilingling |
|
|
是使用pnpm安装依赖的 |
复现了,感谢反馈 @traveler-h |
Reproduced, thanks for the feedback @traveler-h |
Environment
window11
Version
node20
Version
lasted
Link to minimal reproduction
{
"id": 2,
"version": "2.4.4",
"name": {
"zh_CN": "按钮"
},
"component": "ElButton",
"icon": "button",
"description": "常用的操作按钮",
"doc_url": "",
"screenshot": "",
"tags": "",
"keywords": "",
"dev_mode": "proCode",
"npm": {
"package": "element-plus",
"version": "2.4.4",
"script": "https://unpkg.com/[email protected]/dist/index.full.mjs",
"css": "https://unpkg.com/[email protected]/dist/index.css",
"dependencies": null,
"exportName": "ElButton"
},
"group": "基础组件",
"category": "element-plus",
"configure": {
"loop": true,
"condition": true,
"styles": true,
"isContainer": false,
"isModal": false,
"isPopper": false,
"nestingRule": {
"childWhitelist": "",
"parentWhitelist": "",
"descendantBlacklist": "",
"ancestorWhitelist": ""
},
"isNullNode": false,
"isLayout": false,
"rootSelector": "",
"shortcuts": {
"properties": ["type", "size"]
},
"contextMenu": {
"actions": ["copy", "remove", "insert", "updateAttr", "bindEevent", "createBlock"],
"disable": []
},
"invalidity": [""],
"clickCapture": true,
"framework": "Vue"
},
"schema": {
"properties": [
{
"name": "0",
"label": {
"zh_CN": "基础属性"
},
"content": [
{
"property": "size",
"label": {
"text": {
"zh_CN": "size"
}
},
"description": {
"zh_CN": "尺寸"
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"labelPosition": "top",
"type": "string",
"defaultValue": "default",
"widget": {
"component": "MetaSelect",
"props": {
"options": [
{
"label": "large",
"value": "large"
},
{
"label": "default",
"value": "default"
},
{
"label": "small",
"value": "small"
}
]
}
}
},
{
"property": "type",
"label": {
"text": {
"zh_CN": "type"
}
},
"description": {
"zh_CN": "类型"
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"labelPosition": "top",
"type": "string",
"widget": {
"component": "MetaInput",
"props": {}
}
}
],
"description": {
"zh_CN": ""
}
}
],
"events": {},
"slots": {
"default": {
"label": {
"zh_CN": "default"
},
"description": {
"zh_CN": "自定义默认内容"
}
},
"loading": {
"label": {
"zh_CN": "loading"
},
"description": {
"zh_CN": "自定义加载中组件"
}
}
}
}
},
Step to reproduce
npm run dev
控制台报错:Uncaught (in promise) TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".
What is expected
No response
What is actually happening
No response
Any additional comments (optional)
No response
The text was updated successfully, but these errors were encountered: