Closed mraible closed 1 year ago
@mraible The error seems to be related to an incorrect jdl filename (perhaps it's not 'reactive-mf.jdl' but 'reactive-ms.jdl'). Isn't the error you actually want to address as follows?
$ jhipster jdl reactive-ms.jdl --monorepository --workspaces
██╗ ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ███████╗
██║ ██║ ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
██║ ████████║ ██║ ███████╔╝ ╚█████╗ ██║ ██████╗ ███████╔╝
██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
https://www.jhipster.tech
Welcome to JHipster v8.0.0-beta.3
INFO! Generating jdls reactive-ms.jdl
ERROR! An error occured while running jhipster:jdl#parseJDL
ERROR! ERROR! Unknown value 'neo4j' for option 'devDatabaseType'.
Error: Unknown value 'neo4j' for option 'devDatabaseType'.
at file:///Users/hide/Documents/GitHub/generator-jhipster/dist/jdl/models/jdl-application-configuration-factory.js:36:19
at Array.forEach (<anonymous>)
at createApplicationConfigurationFromObject (file:///Users/hide/Documents/GitHub/generator-jhipster/dist/jdl/models/jdl-application-configuration-factory.js:29:38)
at new JDLApplication (file:///Users/hide/Documents/GitHub/generator-jhipster/dist/jdl/models/jdl-application.js:27:23)
at createJDLApplication (file:///Users/hide/Documents/GitHub/generator-jhipster/dist/jdl/models/jdl-application-factory.js:26:12)
at file:///Users/hide/Documents/GitHub/generator-jhipster/dist/jdl/converters/parsed-jdl-to-jdl-object/application-converter.js:35:32
at Array.map (<anonymous>)
at convertApplications (file:///Users/hide/Documents/GitHub/generator-jhipster/dist/jdl/converters/parsed-jdl-to-jdl-object/application-converter.js:33:31)
at fillApplications (file:///Users/hide/Documents/GitHub/generator-jhipster/dist/jdl/converters/parsed-jdl-to-jdl-object/parsed-jdl-to-jdl-object-converter.js:71:29)
at Object.parseFromConfigurationObject (file:///Users/hide/Documents/GitHub/generator-jhipster/dist/jdl/converters/parsed-jdl-to-jdl-object/parsed-jdl-to-jdl-object-converter.js:53:5)
at getJDLObject (file:///Users/hide/Documents/GitHub/generator-jhipster/dist/jdl/jdl-importer.js:127:42)
at Object.import (file:///Users/hide/Documents/GitHub/generator-jhipster/dist/jdl/jdl-importer.js:97:31)
at JdlGenerator.parseJDL (file:///Users/hide/Documents/GitHub/generator-jhipster/dist/generators/jdl/generator.mjs:128:52)
at JdlGenerator.executeTask (file:///Users/hide/Documents/GitHub/generator-jhipster/node_modules/yeoman-generator/dist/actions/lifecycle.js:241:26)
at env.queueTask.once (file:///Users/hide/Documents/GitHub/generator-jhipster/node_modules/yeoman-generator/dist/actions/lifecycle.js:215:56)
at runLoop.add.once (file:///Users/hide/Documents/GitHub/generator-jhipster/node_modules/yeoman-environment/dist/environment-base.js:384:23)
Looking at the source, it seems that in v8 the option value checks have become stricter.
By removing devDatabaseType
and prodDatabaseType
from neo4j
and mongodb
, the check passes.
databaseType neo4j
# devDatabaseType neo4j
# prodDatabaseType neo4j
But, the next error occurs...
ERROR! An error occured while running jhipster:jdl#parseJDL
ERROR! ERROR! In the relationship between Blog and User, User is not declared. If 'User' is a built-in entity declare like 'Blog to User with builtInEntity'.
Error: In the relationship between Blog and User, User is not declared. If 'User' is a built
Overview of the issue
I tried my micro frontends tutorials with the latest
main
branch. It no longer works.Motivation for or Use Case
Vintage tutorials should still work with the latest release.
Reproduce the error
Results in:
JHipster Version(s)
The
main
branchJHipster configuration
None. No
.yo-rc.json
written for any apps.