strong textI am using JHipster v6.5.0. My blueprint is generator-jhipster-vuejs. My database is Postgresql. I have been working to this jhipster project for around 2 months. Today I updated my jdl and since then I can not import it using this command jhipster import-jdl jhipster-jdl.jh. It says INFO! No change in entity configurations, no entities were updated. I also tried jhipster import-jdl jhipster-jdl.jh --force. it says
events.js:174
throw er; // Unhandled 'error' event
^
TypeError: Cannot read property 'charAt' of undefined
at rewrite (C:\Users\0568\AppData\Roaming\npm\node_modules\generator-jhipster-vuejs\node_modules\generator-jhipster\generators\utils.js:117:38)
at Object.rewriteFile (C:\Users\0568\AppData\Roaming\npm\node_modules\generator-jhipster-vuejs\node_modules\generator-jhipster\generators\utils.js:63:18)
at Object.addEntityToRouterImport (C:\Users\0568\AppData\Roaming\npm\node_modules\generator-jhipster-vuejs\generators\utils.js:136:19)
I also tried to import previously imported jdl but could not import them.
You have updated JHipster before the vuejs blueprint has been updated, the required changes were merged 7 hours ago in https://github.com/jhipster/jhipster-vuejs/pull/493/commits/c849040e2fa932ce96dd0385fe994a8e91d6db63 and have not been yet released.
Now you have to wait for next vuejs blueprint release, use a local clone on master or use JHipster 6.4.1
Next time before updating JHipster, check which version is supported by the blueprint in the release notes at https://github.com/jhipster/jhipster-vuejs/releases or in package.json.
Related
I'm new to jhipster, but I recently started working on a jhipster-generated project where the previous person added changes to the entity manually rather than using jhipster. I'm wondering if it's possible to update the jdl and json files to reflect the current entity.
We are using Angular 9, and trying to implement package 'angularx-social-login' for social media login. It is installed successfully, but as we are importing classes from package in app.module.ts it gives us error as below:
Namespace '"C:/xampp/htdocs/ABC/node_modules/#angular/core/core"' has no exported member 'eeFactoryDeclaration'
This is the error which we are getting while implementing angularx-social-login
This code gives an error
We had already tried:
We have updated npm using 'npm update' many times
also have tried to implement this separate Angular setup, but still, it is giving the same error.
Note: On other hand, it's not working on Angular 10 as well, It only works on Angular 12.
Can anyone look at this and help us, please?
Check if Angular 9 is suitable to the package version you installed:
However, please notice that up to this date, they are all deprecated.
Here is a repository for Google Sign In, using Angular and Google Identity, should be suitable to all Angular versions:
https://github.com/ShemiNechmad/GoogleSignInAngular
Jhipster 7.0.0 beta does not generate Table Sorting and Pagination in Angular code
Is this intentional or WIP?
Never Mind the Studio does not generate paginate, service, search and Filter tags
I have added those manually in JDL and regenerated the jdl import
I have got some work to modify default html generated by Jhipster for Angular2 more specifically,i want to modify styles for grid generated by Jhipster for Entity's.
I have gone through tutorial creating module in Jhispter documentation.
https://jhipster.github.io/modules/creating-a-module/
generator for creating subgenerator is also their can someone please give me pointers on this problem?
e.g
yo jhipster:entity Author
from above command jhipster creates all necessary files at server and client like JPA Entity,REST controller,Service, at client side it creates CRUD UI for Author entity using Angular2(i opted for anular2)
I want to modify client generation Code, i just want to modify HTML templates which gets generated by jhipster entity sub:generator
you need to run Yarn and start modifying your author.component.html
which will automatically refreshed in your Browser.
https://jhipster.github.io/development/
You could also consider using git prior to running the generator and then reverting the server side code once the generator has ran
After creating the migration files for this test project I have created the models and controllers.
When trying to access the model from the controller Laravel was resolving the migration file class instead of the one in the models folder. Any method inside ContentController would reference class Content inside /migrations/2013_06_13_123825_content.php rather than /models/Content.php.
So, as a first dumb attempt I have removed the migration files since I have the database modeled outside Laravel and now I can't figure out how to fix this upcoming issue:
include(/var/www/html/laravel/app/database/migrations/2013_06_13_123825_content.php): failed to open stream: No such file or directory
I have already removed the migration rows in the database but this issue persists.
Any guesses?
Run composer dump-autoload. That should fix it!