JHipster: SyntaxError: Unexpected token / in JSON at position 324
for
entity Category {
}
relationship ManyToMany {
Category{parents} to Category{children}
}
Command
jhipster import-jdl jhipster-jdl.jh --force
npm 6.4.1
10.13.0 Node.js.
How to fix this?
per https://www.jhipster.tech/jdl/
If you do not want to regenerate your entities while importing a JDL, you can use the --json-only flag to skip the entity creation part and create only the json files in .jhipster folder.
jhipster import-jdl ./my-jdl-file.jdl --json-only
this might help diagnose the problem by letting you see the intermediate json files.
Also, you might want to drop the empty curlies after your entity -- maybe it's confusing jhipster?