Closed ranraj closed 11 months ago
I have seen one bug already reported https://github.com/jhipster/generator-jhipster-nodejs/issues/258 But It seems the changes proposed by @amanganiello90 has already been present in the current version.
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.
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
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.
Describe the bug src/client/header-util.ts(54,15): error TS2552: Cannot find name 'URL'. Did you mean 'url'? Getting this error during
docker run
of njhipster generated nodejs server code.To Reproduce Steps to reproduce the behaviour:
Exception log
Expected behavior Expected basic nodejs application up and running from the docker container.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
NHipster configuration
docker run -it --rm -v $PWD:/home/jhipster/app jhipster-generator-nodejs jhipster info INFO! Using JHipster version installed locally in current project's node_modules INFO! No custom sharedOptions found within blueprint: generator-jhipster-nodejs at /home/jhipster/app/node_modules/generator-jhipster-nodejs INFO! No custom commands found within blueprint: generator-jhipster-nodejs at /home/jhipster/app/node_modules/generator-jhipster-nodejs Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
node: v14.16.0
npm: 8.5.5
No change to package.json was detected. No package manager install will be executed. Congratulations, JHipster execution is complete! Sponsored with ❤️ by @oktadev.
Additional context Add any other context about the problem here.