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 while creating nodejs microservice app #535

Open
srinivasansuit opened this issue Oct 28, 2024 · 2 comments
Open

Error while creating nodejs microservice app #535

srinivasansuit opened this issue Oct 28, 2024 · 2 comments

Comments

@srinivasansuit
Copy link

Describe the bug
user is not defined
ReferenceError: C:\Users\name\AppData\Roaming\npm\node_modules\generator-jhipster-nodejs\generators\node-server\templates\server\src\web\rest\user.controller.ts.ejs:4
2| import { AuthGuard, Roles, RolesGuard, RoleType } from '../../security';
3| import { PageRequest, Page } from '../../domain/base/pagination.entity';

4| import { <%= user.dtoClass%> } from '../../service/dto/user.dto';
5| import { HeaderUtil } from '../../client/header-util';
6| import { Request } from '../../client/request';
7| import { LoggingInterceptor } from '../../client/interceptors/logging.interceptor';

To Reproduce
Steps to reproduce the behavior:

  1. Run the jhipster --blueprints nodejs
    Welcome to JHipster v8.5.0

? What is the base name of your application? codecompiler
? Which type of application would you like to create? Microservice application
? As you are running in a microservice architecture, on which port would like your server to run? It should be unique to
avoid port conflicts. 8081
? Which type of authentication would you like to use? JWT authentication (stateless, with a token)
? Which production database would you like to use? PostgreSQL
? Which framework would you like to use as microfrontend? No client
ERROR! An error occured while running jhipster-nodejs:node-server#writingTemplateTask
ERROR! ERROR! C:\Users\Srinivasan\AppData\Roaming\npm\node_modules\generator-jhipster-nodejs\generators\node-server\templates\server\src\web\rest\user.controller.ts.ejs:4
2| import { AuthGuard, Roles, RolesGuard, RoleType } from '../../security';
3| import { PageRequest, Page } from '../../domain/base/pagination.entity';

4| import { <%= user.dtoClass%> } from '../../service/dto/user.dto';
5| import { HeaderUtil } from '../../client/header-util';
6| import { Request } from '../../client/request';
7| import { LoggingInterceptor } from '../../client/interceptors/logging.interceptor';
user is not defined
ReferenceError: C:\Users\Srinivasan\AppData\Roaming\npm\node_modules\generator-jhipster-nodejs\generators\node-server\templates\server\src\web\rest\user.controller.ts.ejs:4
2| import { AuthGuard, Roles, RolesGuard, RoleType } from '../../security';
3| import { PageRequest, Page } from '../../domain/base/pagination.entity';
4| import { <%= user.dtoClass%> } from '../../service/dto/user.dto';
5| import { HeaderUtil } from '../../client/header-util';
6| import { Request } from '../../client/request';
7| import { LoggingInterceptor } from '../../client/interceptors/logging.interceptor';

Expected behavior
It should generate microservice application without front end to use it

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: windowns 11 home
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

NHipster configuration

Additional context
Add any other context about the problem here.

@awssa1412
Copy link

Hi team,

Any update for this issue? We're facing the same error when generate a new microservices project.

Thanks,

@DanielFran
Copy link
Member

@awssa1412 we will release a new version 8.8.0.
Please confirm issue is fixed
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants