Object(...) 在使用 element-plus、argon 模板时不是函数

问题描述

我是 VueJS 的新手。我将使用氩气模板。

你能解释一下如何修复的细节吗? 我尝试在 main.js 中使用 argon 插件

首先,我安装了npm模块:element-plus(成功) 这是我的代码

Deserialization failure for Json string:  and class: Empty. Exception: MismatchedInputException and message: No content to map due to end-of-input
 at [Source: (String)""; line: 1,column: 0]
Deserialization failure for Json string:  and class: Object. Exception: MismatchedInputException and message: No content to map due to end-of-input
 at [Source: (String)""; line: 1,column: 0]
new ObjectMapper().readValue({},Empty)=Empty class!
new ObjectMapper().readValue({},Object)={}
Deserialization failure for Json string: { and class: Empty. Exception: JsonEOFException and message: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (String)"{"; line: 1,column: 1])
 at [Source: (String)"{"; line: 1,column: 2]
Deserialization failure for Json string: { and class: Object. Exception: JsonEOFException and message: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (String)"{"; line: 1,column: 2]
Deserialization failure for Json string: } and class: Empty. Exception: JsonParseException and message: Unexpected close marker '}': expected ']' (for root starting at [Source: (String)"}"; line: 1,column: 0])
 at [Source: (String)"}"; line: 1,column: 2]
Deserialization failure for Json string: } and class: Object. Exception: JsonParseException and message: Unexpected close marker '}': expected ']' (for root starting at [Source: (String)"}"; line: 1,column: 2]
Deserialization failure for Json string: }{ and class: Empty. Exception: JsonParseException and message: Unexpected close marker '}': expected ']' (for root starting at [Source: (String)"}{"; line: 1,column: 0])
 at [Source: (String)"}{"; line: 1,column: 2]
Deserialization failure for Json string: }{ and class: Object. Exception: JsonParseException and message: Unexpected close marker '}': expected ']' (for root starting at [Source: (String)"}{"; line: 1,column: 2]
Deserialization failure for Json string: {{} and class: Empty. Exception: JsonParseException and message: Unexpected character ('{' (code 123)): was expecting double-quote to start field name
 at [Source: (String)"{{}"; line: 1,column: 3]
Deserialization failure for Json string: {{} and class: Object. Exception: JsonParseException and message: Unexpected character ('{' (code 123)): was expecting double-quote to start field name
 at [Source: (String)"{{}"; line: 1,column: 3]
new ObjectMapper().readValue({}},Empty)=Empty class!
new ObjectMapper().readValue({}},Object)={}
new ObjectMapper().readValue({}}},Empty)=Empty class!
new ObjectMapper().readValue({}}},Object)={}
new ObjectMapper().readValue({}}}}}}}},Empty)=Empty class!
new ObjectMapper().readValue({}}}}}}}},Object)={}
Deserialization failure for Json string: { "obj":{}}} and class: Empty. Exception: UnrecognizedPropertyException and message: Unrecognized field "obj" (class com.drfirst.gear.user.context.util.AppUtilTest$Empty),not marked as ignorable (0 kNown properties: ])
 at [Source: (String)"{ "obj":{}}}"; line: 1,column: 10] (through reference chain: com.drfirst.gear.user.context.util.AppUtilTest$Empty["obj"])
new ObjectMapper().readValue({ "obj":{}}},Object)={obj={}}
Deserialization failure for Json string: {"name" : "Jason"}} and class: Empty. Exception: UnrecognizedPropertyException and message: Unrecognized field "name" (class com.drfirst.gear.user.context.util.AppUtilTest$Empty),not marked as ignorable (0 kNown properties: ])
 at [Source: (String)"{"name" : "Jason"}}"; line: 1,column: 12] (through reference chain: com.drfirst.gear.user.context.util.AppUtilTest$Empty["name"])
new ObjectMapper().readValue({"name" : "Jason"}},Object)={name=Jason}

Process finished with exit code 0

我的浏览器提出了以下内容

未捕获的类型错误:Object(...) 不是函数 在 eval (index.esm.js?3fd4:1) 在 Module../node_modules/element-plus/lib/index.esm.js (app.js:4051)

任何人都可以帮忙。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)