简体   繁体   English

模块解析失败:意外令牌。 您可能需要一个额外的加载器来处理这些加载器的结果

[英]Module parse failed: Unexpected token . You may need an additional loader to handle the result of these loaders

What is this syntax message?.length === 1 can anyone explain me how to convert it into normal javascript?这是什么语法message?.length === 1谁能解释我如何将它转换成普通的 javascript?

在此处输入图片说明

It is a vue js component I downloaded from somewhere but when I put into my project it gets an error这是我从某处下载的 vue js 组件,但是当我放入我的项目时,它会出错

a?.b is the "optional chaining" operator, which returns undefined when one of the chained properties is undefined or null. a?.b是“可选链接”运算符,当链接的属性之一为 undefined 或 null 时,它返回 undefined。

message?.length === 1 could be replaced by message && message.length === 1 . message?.length === 1可以替换为message && message.length === 1

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 react-script 4.0.3 显示模块解析失败:您可能需要一个额外的加载器来处理这些加载器的结果 - react-script 4.0.3 showing Module parse failed: You may need an additional loader to handle the result of these loaders 您可能需要一个额外的加载器来处理这些加载器的结果,r = ts(a[0]) - You may need an additional loader to handle the result of these loaders, r = ts(a[0]) “你可能需要一个额外的加载器来处理这些加载器的结果。” - "You may need an additional loader to handle the result of these loaders." Reactjs - 你可能需要一个额外的加载器来处理这些加载器的结果 - Reactjs - You may need an additional loader to handle the result of these loaders Vue - 你可能需要一个额外的加载器来处理这些加载器的结果 - Vue - You may need an additional loader to handle the result of these loaders 模块解析失败:意外的令牌(7:5)您可能需要适当的加载程序来处理此文件类型。 :Webpack,Bootstrap - Module parse failed: Unexpected token (7:5) You may need an appropriate loader to handle this file type. : Webpack, Bootstrap 模块解析失败:意外令牌 (41:41) 您可能需要适当的加载程序来处理此文件类型 - Module parse failed: Unexpected token (41:41) You may need an appropriate loader to handle this file type React/Zusand - 模块解析失败:意外的令牌。 您可能需要适当的加载程序来处理此文件类型 - React/Zustand - Module parse failed: Unexpected token. You may need an appropriate loader to handle this file type React - 模块解析失败:意外的令牌。 您可能需要适当的加载程序来处理此文件类型 - React - Module parse failed: Unexpected Token. You may need an appropriate loader to handle this file type 模块解析失败:意外标记 (1:0) 您可能需要适当的加载程序来处理此文件类型。 - Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type. <!DOCTYPE html>
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM