Angular-Fullstack: Using $resourse query with params

Issue I’m using Angular-Fullstack generator, and I’m not able to get a list of drivers depending on a companyID, through $resource query. This is what I have: server/api/driver/index.js: router.get(‘/:company’, controller.index); server/api/driver/driver.controller.js: export function index(req, res) { return Driver.find({company: req.params.company}).exec() .then(function(res){

Continue reading

Angular 2: Where do I specify additional methods?

Issue I’m working hard on learning Angular 2 development, so excuse the basic question. I used Angular-full-stack (https://github.com/angular-fullstack/generator-angular-fullstack) to generate a skeleton app. Among other things, it pre-generates 5 files in client/app/main: main.controller.js, main.controller.spec.js, main.html, main.js, main.scss main.controller.js ‘use strict’;

Continue reading

Circular dependency error in angular 5

Issue Always I’m getting warning that is circular dependency WARNING in Circular dependency detected: src\app\auth\logout\logout.component.ts -> src\app\auth\_services\authentication.service.ts -> src\app\app.module.ts -> src\app\app-routing.module.ts -> src\app\auth\logout\logout.component.ts WARNING in Circular dependency detected: src\app\theme\layouts\header-nav\header-nav.component.ts -> src\app\_services\data\emp.service.ts -> src\app\app.module.ts -> src\app\theme\layouts\layout.module.ts -> src\app\theme\layouts\header-nav\header-nav.component.ts WARNING in Circular

Continue reading

How to prevent git commit from deleting files

Issue I just did a git commit and it deleted a few files seemingly randomly from my node_modules folder. Has anyone had this issue? To be clear, my latest git commit deleted delete mode 100644 node_modules/grunt-google-cdn/node_modules/google-cdn/node_modules/cdnjs-cdn-data/external/cdnjs.json delete mode 100644 node_modules/grunt-node-inspector/node_modules/node-inspector/front-end-node/Images/src/favicon.eps

Continue reading

Error in starting the lite-server using NPM

Issue npm ERR! code EJSONPARSE npm ERR! file C:\Users\thehitmanranjan\Desktop\git-test\package.json npm ERR! JSON.parse Failed to parse json npm ERR! JSON.parse Unexpected string in JSON at position 240 while parsing ‘{ npm ERR! JSON.parse “name”: “git-test”, npm ERR! JSON.parse “version”: “1.’ npm

Continue reading

Deploy Node.js on tomcat

Issue I have developed an application using Angular, Node/Express and MySQL. I have deployed my Angular application on the tomcat server, which is connected to some 10 PCs. However, I want to deploy my backend i.e, Node.js/Express.js on the same

Continue reading

How to Prevent Webpack Error after npm Install?

Issue I was working on a project, and everything was going good, until I did npm install. Then, Webpack throws the following error: new ForkCheckerPlugin(), ^ TypeError: ForkCheckerPlugin is not a constructor at makeWebpackConfig (/home/nsanz/Documentos/git/tachology/webpack.make.js:252:9) at Object.exports.default (/home/nsanz/Documentos/git/tachology/server/config/express.js:86:27) at Object.<anonymous>

Continue reading

Jhipster webpack production ERROR in ./src/main/webapp/app/app.main.ts ,Module not found:Error: Can't resolve './app.module.ngfactory'

Issue When did I run yarn run webpack:prod , it showed -> ERROR in ./src/main/webapp/app/app.main.ts Module not found: Error: Can’t resolve ‘./app.module.ngfactory’ in ‘/home/myProject/src/main/webapp/app’ @ ./src/main/webapp/app/app.main.ts 2:0-62 I am using : Jhipster version : 4.13.3 Angular : 5.1.0 Jdk-1.8 os

Continue reading