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 running mhipster after 2.0.0 release #287

Closed
sdelamo opened this issue Aug 22, 2023 · 7 comments
Closed

Error running mhipster after 2.0.0 release #287

sdelamo opened this issue Aug 22, 2023 · 7 comments

Comments

@sdelamo
Copy link

sdelamo commented Aug 22, 2023

node

$ node -v

v18.17.1

Java 11:

$ java --version
openjdk 11.0.20 2023-07-18 LTS
OpenJDK Runtime Environment Corretto-11.0.20.8.1 (build 11.0.20+8-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.20.8.1 (build 11.0.20+8-LTS, mixed mode)

Git:

$ git --version
git version 2.39.2 (Apple Git-143)

Install generator-jhipster-micronaut

 % sudo npm install -g generator-jhipster-micronaut
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
changed 653 packages in 15s
78 packages are looking for funding
run `npm fund` for details

% mhipster                                    
node:internal/errors:496
  ErrorCaptureStackTrace(err);
  ^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/util/namespace' is not defined by "exports" in /usr/local/lib/node_modules/generator-jhipster-micronaut/node_modules/yeoman-environment/package.json
  at new NodeError (node:internal/errors:405:5)
  at exportsNotFound (node:internal/modules/esm/resolve:359:10)
  at packageExportsResolve (node:internal/modules/esm/resolve:695:9)
  at resolveExports (node:internal/modules/cjs/loader:567:36)
  at Module._findPath (node:internal/modules/cjs/loader:636:31)
  at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
  at Module._load (node:internal/modules/cjs/loader:922:27)
  at Module.require (node:internal/modules/cjs/loader:1143:19)
  at require (node:internal/modules/cjs/helpers:121:18)
  at Object.<anonymous> (/usr/local/lib/node_modules/generator-jhipster-micronaut/node_modules/generator-jhipster/utils/blueprint.js:19:25) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED
}
@jeremyg484
Copy link
Contributor

It looks like this is related to jhipster/generator-jhipster#20349

@atomfrede @mraible Do you guys know if this should be expected to work with Node v18 by now, or is still expected that it will only work on Node v16 (the previous LTS)?

@mraible
Copy link
Contributor

mraible commented Aug 22, 2023

JHipster 7 requires Node 16. Can you please try again with Node 16?

@sdelamo
Copy link
Author

sdelamo commented Aug 23, 2023

I don't get any error though if I run jhipster, only with mhipster

@mraible
Copy link
Contributor

mraible commented Aug 23, 2023

There are several issues that were opened against JHipster 7.9.3 when using Node 18. Are you sure the jhipster is using JHipster 7? You might have a JHipster 8 beta installed.

@sdelamo
Copy link
Author

sdelamo commented Aug 23, 2023

You are right @mraible

jhipster --version 
8.0.0-beta.2

I installed it with sudo npm install -g generator-jhipster I expected that to install the stable version.

@mraible
Copy link
Contributor

mraible commented Aug 23, 2023

@sdelamo I agree that the beta releases of v8 should be flagged as betas. Unfortunately, they are not.

@mraible
Copy link
Contributor

mraible commented Sep 12, 2023

This should be fixed now, so I'm closing this. Onward to the Micronaut 4 version!

@mraible mraible closed this as completed Sep 12, 2023
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