Git Product home page Git Product logo

Comments (4)

danielbrutti avatar danielbrutti commented on July 19, 2024 2

Hello, I agree with @easyservices

I have a new project, "dom" is on lib property of the tsconfig, and the import issue is there.

Adding the import { URL } from 'url'; fix the issue.

from generator-jhipster-nodejs.

ghacupha avatar ghacupha commented on July 19, 2024 1

Yea noticed that too. According to this answer on StackOverflow, you are supposed to add "dom" to the lib property of the compiler options, in the server's tsconfig.json file to enable the dom typings in the app, since the URL interface is declared in that typing file (lib.dom.d.ts) and used for creating object URLs.

from generator-jhipster-nodejs.

easyservices avatar easyservices commented on July 19, 2024 1

Yea noticed that too. According to this answer on StackOverflow, you are supposed to add "dom" to the lib property of the compiler options, in the server's tsconfig.json file to enable the dom typings in the app, since the URL interface is declared in that typing file (lib.dom.d.ts) and used for creating object URLs.

No it is not the issue as it is already there in the last version. The solution is to simply to add the followings:

import { URL } from 'url';

in the /server/src/client/header-util.ts file.

from generator-jhipster-nodejs.

ranraj avatar ranraj commented on July 19, 2024

I have seen one bug already reported #258
But It seems the changes proposed by @amanganiello90 has already been present in the current version.

wget https://nodejs.org/dist/v14.16.0/node-v14.16.0-linux-x64.tar.gz -O /tmp/node.tar.gz && \

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.