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 when generate Jhipter and Quarkus in MacOS #298

Closed
Vocaotrinh1999nlu opened this issue Nov 2, 2023 · 7 comments
Closed

Error when generate Jhipter and Quarkus in MacOS #298

Vocaotrinh1999nlu opened this issue Nov 2, 2023 · 7 comments

Comments

@Vocaotrinh1999nlu
Copy link

When I generate jhipter with Quarkus, I following in official document but got some error, please help me resolve that
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './cli/utils' is not defined by "exports" in /opt/homebrew/lib/node_modules/generator-jhipster-quarkus/node_modules/generator-jhipster/package.json
at new NodeError (node:internal/errors:406:5)
at exportsNotFound (node:internal/modules/esm/resolve:268:10)
at packageExportsResolve (node:internal/modules/esm/resolve:598:9)
at resolveExports (node:internal/modules/cjs/loader:547:36)
at Module._findPath (node:internal/modules/cjs/loader:621:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1034:27)
at Module._load (node:internal/modules/cjs/loader:901:27)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at Object. (/opt/homebrew/lib/node_modules/generator-jhipster-quarkus/cli/jhipster-quarkus.js:22:20) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

@mraible
Copy link
Contributor

mraible commented Nov 2, 2023

Can you please try with Node 16 and let us know if that works?

@djibythiaw
Copy link

Hello,
I have the same issue with node v20.9.0 and also node v18.18.2
but it's working fine with node v16.20.2

@ben-hua
Copy link

ben-hua commented Nov 13, 2023

Can you please try with Node 16 and let us know if that works?

I found in develop has been removed in the readMe. When will this main version be released?

@mraible
Copy link
Contributor

mraible commented Nov 13, 2023

@ben-hua I removed the in-development part of the README because this blueprint has had a couple of releases, which means it's no longer just in development.

We could do a release anytime, but it would be nice to have Keycloak 22 support. See #302 for more information.

@skin27
Copy link

skin27 commented Dec 15, 2023

I have the same issue on Windows 11 with node Node.js v18.16.0

D:\intellij\workspace\qhipster81>jhipster-quarkus
node:internal/modules/cjs/loader:571
      throw e;
      ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './cli/utils' is not defined by "exports" in C:\Users\Raymond\AppData\Roaming\npm\node_modules\generator-jhipster-quarkus\node_modules\generator-jhipster\package.json
    at new NodeError (node:internal/errors:399:5)
    at exportsNotFound (node:internal/modules/esm/resolve:361:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:697:9)
    at resolveExports (node:internal/modules/cjs/loader:565:36)
    at Module._findPath (node:internal/modules/cjs/loader:634:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (C:\Users\Raymond\AppData\Roaming\npm\node_modules\generator-jhipster-quarkus\cli\jhipster-quarkus.js:22:20) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Using Jhipster 8.1.0

@thanasis812
Copy link

Error still present using Windows 11 and node 20.11.0. Any plans on upgrading to support 20.11.0 any time soon?

@vishal423
Copy link
Collaborator

it should be fixed with 3.0.0 release

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

7 participants