【问题标题】:Error Unexpected token { in JSON at position 64错误 Unexpected token { 在 JSON 中的位置 64
【发布时间】:2021-09-13 05:27:52
【问题描述】:
    {
  "collection": "@nestjs/schematics",
  "sourceRoot": "src"
}
{
  "collection": "@nestjs/schematics",
  "sourceRoot": "src",
  "compilerOptions": {
    "assets": ["mail/templates/**/*"], // ????  or "**/*.hbs" all files ending with .hbs
    "watchAssets": true // ???? copy assets in watch mode
  }
}

【问题讨论】:

标签: json nestjs


【解决方案1】:

如果它是两个不同的对象,那么它应该如下所示。

[{
    "collection": "@nestjs/schematics",
    "sourceRoot": "src"
},
{
    "collection": "@nestjs/schematics",
    "sourceRoot": "src",
    "compilerOptions": {
        "assets": [
            "mail/templates/**/*"
        ], // ?  or "**/*.hbs" all files ending with .hbs
        "watchAssets": true // ? copy assets in watch mode
    }
}]

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-12
    • 2020-12-13
    • 2018-07-27
    • 2022-01-22
    • 2022-10-17
    • 2021-10-19
    相关资源
    最近更新 更多