Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot import jdl file using jhipster

I'm new to jhipster. I am on jhipster v7.8.1, i can generate an app using the cli questions but when i try importing a jdl file i got the following error:

**ERROR! Class constructor GAstVisitor cannot be invoked without 'new' TypeError: Class constructor GAstVisitor cannot be invoked without 'new' at new DslMethodsCollectorVisitor

like image 807
kk99 Avatar asked Oct 29 '25 21:10

kk99


1 Answers

This occurs due to a recent bug in the one of JHipster libraries. As a temporary solution you can go to the JHipster installed location and find it's package.json file and override the package causing this error as follows. Then run npm install again.

    "overrides":{
      "[email protected]": {
      "@chevrotain/gast": "10.1.2"
     }
    }

This will prevent the JHipster using latest package of that.

like image 187
Priyantha Buddhika Avatar answered Nov 01 '25 20:11

Priyantha Buddhika



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!