Git Product home page Git Product logo

Comments (1)

JeffeVargasP avatar JeffeVargasP commented on September 28, 2024

The "NHipster" generator has two issues that prevent the generated code from functioning properly right after the project is created. In the backend, the issue is related to the file located at server/src/client/header-util.ts, where an attempt is made to instantiate the URL module, which looks something like:

const url = new URL();

However, the generator does not import the module, causing the backend to break when executing **npm run start:app**.

The solution is to add line 4 as described below:

import { URL } from 'url';

This way, the backend can function correctly when generating a project with NHipster without manual user intervention.

On the frontend, the problem is with the browser-sync-client library, which is installed with the generator. The version is incompatible with the project, causing it to break every time the developer starts the project with npm start, disrupting the "watchmode" flow of nodemon.

A possible solution that I tested is to add a specific version of the package. I tested with version @2.27.9 and achieved success, thus fixing all the issues I encountered when generating the project.

from generator-jhipster-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.