【发布时间】:2018-11-14 08:08:34
【问题描述】:
JHipster: SyntaxError: Unexpected token / in JSON at position 324
为
entity Category {
}
relationship ManyToMany {
Category{parents} to Category{children}
}
命令
jhipster import-jdl jhipster-jdl.jh --force
npm 6.4.1
10.13.0 Node.js.
如何解决这个问题?
【问题讨论】:
-
JSON 有效吗?您没有向我们展示导致错误的数据样本。该错误表明您没有得到有效的 JSON。
-
据我所知,我没有无效的 json,根本原因对我来说是个谜。
-
你的断言与你的错误信息相矛盾。所以要么你的代码读错了,要么你的断言不正确。如果您在此处发布数据,我们可以为您检查。或者,您可以使用像 jsonlint.com 这样的网站来验证您的 JSON。您是否查看了数据中的第 324 位以了解其中的内容?
标签: node.js json npm jhipster code-generation