微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决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 举报,一经查实,本站将立刻删除。