hermeslm / generator-jhipster-angular-datatables Goto Github PK
View Code? Open in Web Editor NEWJHipster module to change default data grid(table) with Angular DataTables
License: Other
JHipster module to change default data grid(table) with Angular DataTables
License: Other
Hi,
I generated an application with JHipster 4.0.6 and got this error message when running yo jhipster-angular-datatables
:
ERROR! I support only JHipster versions greater than ${supportedJHVersion}... If you want to use Entity Audit with an older JHipster version, download a previous version that supports the required JHipster version.
Hi,
I tried installing this module on a Jhipster 4.0.1 application but get the following error
yo jhipster-angular-datatables default
Composing JHipster configuration with module angular-datatables
Welcome to the JHipster-Angular-DataTables Generator! v1.3.4
This will change JHipster Entity list component with Angular-DataTables
Error jhipster-angular-datatables default
ERROR! I support only JHipster versions greater than ${supportedJHVersion}... If you want to use Entity Audit with an older JHipster version, download a previous version that supports the required JHipster version.
Would it not work with Jhipster 4.0.1 version? This is on Windows 10 OS
Thank You
Hello!
I tried using this generator to update a new jhipster app i'm buidling, with the latest 4.3.0 jhipster version. However, I got all this errors, and the view of my entity is still the same. Afterwards I ran yarn install
since we don't use gulp or bower on this Angular 4 app. Thank you in advance for working on this and for your help
yo jhipster-angular-datatables
Composing JHipster configuration with module angular-datatables
Welcome to the JHipster-Angular-DataTables Generator! v1.3.10
This will change JHipster Entity list component with Angular-DataTables
Reading the JHipster project configuration for your module
? (1/2) Do you want to use template based or the default views? Yes, use templates based
? (2/2) Do you want to change all existing entities, all your custom code will be overwritten? No, let me choose the entities to update
? Please choose the entities to be updated Request
TypeError: Cannot read property 'dependencies' of undefined
at jhipsterUtils.rewriteJSONFile (/Users/poolebu/Desktop/ErnestoLab/nhgSalesPortal/node_modules/generator-jhipster/generators/generator-base.js:426:24)
at Object.rewriteJSONFile (/Users/poolebu/Desktop/ErnestoLab/nhgSalesPortal/node_modules/generator-jhipster/generators/util.js:88:5)
at Object.addBowerDependency (/Users/poolebu/Desktop/ErnestoLab/nhgSalesPortal/node_modules/generator-jhipster/generators/generator-base.js:425:27)
at child.writeBaseFiles (/Users/poolebu/.npm-packages/lib/node_modules/generator-jhipster-angular-datatables/generators/app/index.js:166:20)
at Object.<anonymous> (/Users/poolebu/.npm-packages/lib/node_modules/generator-jhipster-angular-datatables/node_modules/yeoman-generator/lib/base.js:436:25)
at /Users/poolebu/.npm-packages/lib/node_modules/generator-jhipster-angular-datatables/node_modules/yeoman-generator/node_modules/run-async/index.js:25:25
at /Users/poolebu/.npm-packages/lib/node_modules/generator-jhipster-angular-datatables/node_modules/yeoman-generator/node_modules/run-async/index.js:24:19
at /Users/poolebu/.npm-packages/lib/node_modules/generator-jhipster-angular-datatables/node_modules/yeoman-generator/lib/base.js:452:8
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
Unable to find bower.json. Reference to bower dependency (name: angular-datatables, version:0.5.5) not added.
TypeError: Cannot read property 'dependencies' of undefined
at jhipsterUtils.rewriteJSONFile (/Users/poolebu/Desktop/ErnestoLab/nhgSalesPortal/node_modules/generator-jhipster/generators/generator-base.js:426:24)
at Object.rewriteJSONFile (/Users/poolebu/Desktop/ErnestoLab/nhgSalesPortal/node_modules/generator-jhipster/generators/util.js:88:5)
at Object.addBowerDependency (/Users/poolebu/Desktop/ErnestoLab/nhgSalesPortal/node_modules/generator-jhipster/generators/generator-base.js:425:27)
at child.writeBaseFiles (/Users/poolebu/.npm-packages/lib/node_modules/generator-jhipster-angular-datatables/generators/app/index.js:167:20)
at Object.<anonymous> (/Users/poolebu/.npm-packages/lib/node_modules/generator-jhipster-angular-datatables/node_modules/yeoman-generator/lib/base.js:436:25)
at /Users/poolebu/.npm-packages/lib/node_modules/generator-jhipster-angular-datatables/node_modules/yeoman-generator/node_modules/run-async/index.js:25:25
at /Users/poolebu/.npm-packages/lib/node_modules/generator-jhipster-angular-datatables/node_modules/yeoman-generator/node_modules/run-async/index.js:24:19
at /Users/poolebu/.npm-packages/lib/node_modules/generator-jhipster-angular-datatables/node_modules/yeoman-generator/lib/base.js:452:8
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
Unable to find bower.json. Reference to bower dependency (name: ods-lib, version:https://github.com/hermeslm/ods-lib.git#1.1.7) not added.
Unable to find src/main/webapp/app/app.module.js or missing required jhipster-needle. Reference to datatables not added to JHipster app.
Unable to find src/main/webapp/app/app.module.js or missing required jhipster-needle. Reference to datatables.factory not added to JHipster app.
Unable to find src/main/webapp/app/app.module.js or missing required jhipster-needle. Reference to datatables.bootstrap not added to JHipster app.
Unable to find src/main/webapp/app/app.module.js or missing required jhipster-needle. Reference to datatables.colreorder not added to JHipster app.
Unable to find src/main/webapp/app/app.module.js or missing required jhipster-needle. Reference to datatables.columnfilter not added to JHipster app.
Unable to find src/main/webapp/app/app.module.js or missing required jhipster-needle. Reference to ods-lib not added to JHipster app.
I'm Updating selected entities Request
WARN! dto is missing in .jhipster/Request.json, using no as fallback
create src/main/webapp/app/entities/tpl/list-box-header-tpl.html
create src/main/webapp/app/entities/tpl/list-header-tpl.html
create src/main/webapp/app/entities/request/requests.html
create src/main/webapp/app/entities/request/request.controller.js
create .jhipster/modules/jhi-hooks.json
I'm all done. Running bower install for you to install the required dependencies. If this fails, try running the command yourself.
module.js:472
throw err;
^
Error: Cannot find module 'internal/fs'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at evalmachine.<anonymous>:18:20
at Object.<anonymous> (/Users/poolebu/.npm-packages/lib/node_modules/bower/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
Angular Datatables are enabled for entities, you will have an option to enable audit while creating new entities as well
I'm running gulp install now
[20:10:42] Local gulp not found in ~/Desktop/ErnestoLab/nhgSalesPortal
[20:10:42] Try running: npm install gulp
I install but cannot use the generator
yo jhipster-angular-datatables
Error jhipster-angular-datatables
You don’t seem to have a generator with the name “jhipster-angular-datatables” installed.
But help is on the way:
You can see available generators via npm search yeoman-generator or via http://yeoman.io/generators/.
Install them with npm install generator-jhipster-angular-datatables.
To see all your installed generators run yo without any arguments. Adding the --help option will also show subgenerators.
If yo cannot find the generator, run yo doctor to troubleshoot your system.
Hi
After creating entities for my sample application i used the
> yo jhipster-angular-datatables default
command then I run my server but the datatable grid is not visible in all pages and has a js bug in browser console as below :
angular.js:13920 TypeError: Cannot read property 'parentNode' of null
at HTMLTableElement.<anonymous> (jquery.dataTables.js:912)
at Function.each (jquery.js:368)
at jQuery.fn.init.each (jquery.js:157)
at jQuery.fn.init.DataTable [as dataTable] (jquery.dataTables.js:869)
at jQuery.fn.init.$.fn.DataTable (jquery.dataTables.js:15171)
at renderDataTable (angular-datatables.js:757)
at angular-datatables.js:1080
at angular.js:19612
at completeOutstandingRequest (angular.js:5964)
at angular.js:6243
Could you tell me what should i do to fix it?
Hi,
When i am trying to run this command on an already generated module, I am getting this error : Unable to find bower.json. Reference to bower dependency (name: angular-datatables, version:0.5.5) not added.
I have already installed it using 'npm install -g generator-jhipster-angular-datatables'
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.