Uniapp Syntax Error: Error: Unbalanced delimiter found in string

简介: Uniapp Syntax Error: Error: Unbalanced delimiter found in string

  • 报错
in ./src/pages/user/components/tasks.vue?vue&type=script&lang=js&
Syntax Error: Error: Unbalanced delimiter found in string
...
  • 这边导致文件的原因:可能是条件编译语法不小心删了某个字符,导致不全,无法形成一对。
// #ifdef MP-TOUTIAO
...
...
// 这边找到报错的原因,是 // #ifdef 没有结束符了,所以后面追加上 // #endif 即可。
  • 解决问题:
// #ifdef MP-TOUTIAO
...
...
// #endif

相关文章
【已解决】Error: Element type is invalid: expected a string (for built-in components) or a class/function
Error: Element type is invalid: expected a string (for built-in components) or a class/function
2340 0
【已解决】Error: Element type is invalid: expected a string (for built-in components) or a class/function
|
10月前
日常报错 - NO constructor found in matching [java.lang.String]解决方法
日常报错 - NO constructor found in matching [java.lang.String]解决方法
194 0
|
6月前
|
编译器
error TS2322 Type ‘string null‘ is not assignable to type ‘string undefined‘.
error TS2322 Type ‘string null‘ is not assignable to type ‘string undefined‘.
100 1
|
8月前
|
传感器 IDE 开发工具
排错实战 —— 解决 c++ 工程编译错: error C2059 'string' illegal token on right
排错实战 —— 解决 c++ 工程编译错: error C2059 'string' illegal token on right
|
9月前
|
JavaScript
vue 渲染列表报错Avoid using non-primitive value as key, use string/number value instead. found in
vue 渲染列表报错Avoid using non-primitive value as key, use string/number value instead. found in
43 0
|
11月前
|
数据安全/隐私保护
fatal error: boost/algorithm/string.hpp: 没有那个文件或目录
fatal error: boost/algorithm/string.hpp: 没有那个文件或目录
124 0
|
数据库
types. Found: ‘com.baomidou.mybatisplus.annotation.IdType‘, required: ‘java.lang.String‘
被自己蠢哭了,今天设置表的主键为自动递增,就写IdType,死活报 types. Found: 'com.baomidou.mybatisplus.annotation.IdType', required: 'java.lang.String' 这个错误。
|
Java 数据库连接 mybatis
控制台报错 No constructor found in com.base.entity.Menu matching [java.lang.Integer, java.lang.String]
控制台报错 No constructor found in com.base.entity.Menu matching [java.lang.Integer, java.lang.String]
118 0
控制台报错 No constructor found in com.base.entity.Menu matching [java.lang.Integer, java.lang.String]
error: ‘to_string‘ is not a member of ‘std‘ 或 error: ‘thread‘ is not a member of ‘std‘ 原因及解决办法
error: ‘to_string‘ is not a member of ‘std‘ 或 error: ‘thread‘ is not a member of ‘std‘ 原因及解决办法
1077 0
|
Java 编译器 Android开发
Java compiler error: constant string too long
Java compiler error: constant string too long