Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error generating app: Cannot read properties of undefined (reading 'config') #25175

Closed
1 task done
egvimo opened this issue Feb 13, 2024 · 0 comments · Fixed by #25229
Closed
1 task done

Error generating app: Cannot read properties of undefined (reading 'config') #25175

egvimo opened this issue Feb 13, 2024 · 0 comments · Fixed by #25229

Comments

@egvimo
Copy link
Contributor

egvimo commented Feb 13, 2024

Overview of the issue

I'm getting an error if I try to generate an app from JDL.

INFO! Generating jdls app.jdl
ERROR! An error occured while running jhipster:jdl#customizeApplication
ERROR! ERROR! Cannot read properties of undefined (reading 'config')
TypeError: Cannot read properties of undefined (reading 'config')
    at file:///C:/path/to/nodejs/v20.11.0/node_modules/generator-jhipster/dist/generators/jdl/internal/application.mjs:23:70
    at Array.map (<anonymous>)
    at customizeForMicroservices (file:///C:/path/to/nodejs/v20.11.0/node_modules/generator-jhipster/dist/generators/jdl/internal/application.mjs:22:79)      
    at JdlGenerator.customizeApplication (file:///C:/path/to/nodejs/v20.11.0/node_modules/generator-jhipster/dist/generators/jdl/generator.mjs:165:17)        
    at JdlGenerator.executeTask (file:///C:/path/to/nodejs/v20.11.0/node_modules/generator-jhipster/node_modules/yeoman-generator/dist/actions/lifecycle.js:244:26)
    at env.queueTask.once (file:///C:/path/to/nodejs/v20.11.0/node_modules/generator-jhipster/node_modules/yeoman-generator/dist/actions/lifecycle.js:218:56) 
    at runLoop.add.once (file:///C:/path/to/nodejs/v20.11.0/node_modules/generator-jhipster/node_modules/yeoman-environment/dist/environment-base.js:384:23)  
    at Immediate.<anonymous> (C:\path\to\nodejs\v20.11.0\node_modules\generator-jhipster\node_modules\grouped-queue\lib\subqueue.js:48:34)
    at process.processImmediate (node:internal/timers:478:21)
Reproduce the error
jhipster import-jdl app.jdl --skip-git --skip-install --force

JDL:

application {
    config {
        baseName sample
        packageName sample
        applicationType gateway
    }
    entities *
}

microservice Abc with ms

entity Abc {
    name String unique required
    otherField String
}
JHipster Version(s)

8.1.0

  • Checking this box is mandatory (this is just to show you read everything)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants