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

KHipster Version(1.16.0) not compatible with generator-jhipster : 8.7.3 and Node.js v20.17.0 error in project creation command khipster #456

Open
javagrails opened this issue Nov 27, 2024 · 2 comments

Comments

@javagrails
Copy link

My project creation error using below environment

  1. generator-jhipster : 8.7.3
  2. Node.js v20.17.0

Motivation for or Use Case

Current khipster using below configs

  1. generator-jhipster: 8.6.0
  2. jhipster-7-templates: npm:[email protected]
  3. node: ^18.19.0 || >= 20.6.1

Reproduce the error just run khipster

❯ khipster
node:internal/modules/cjs/loader:641
      throw e;
      ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './cli/utils' is not defined by "exports" in /Users/userpc/.nvm/versions/node/v20.17.0/lib/node_modules/generator-jhipster-kotlin/node_modules/generator-jhipster/package.json
    at exportsNotFound (node:internal/modules/esm/resolve:304:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:651:9)
    at resolveExports (node:internal/modules/cjs/loader:634:36)
    at Module._findPath (node:internal/modules/cjs/loader:724:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/Users/userpc/.nvm/versions/node/v20.17.0/lib/node_modules/generator-jhipster-kotlin/cli/khipster.js:22:20)
    at Module._compile (node:internal/modules/cjs/loader:1469:14) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Node.js v20.17.0

Related issues / Questions

As I can not create project my default version of Node.js v20.17.0 but I also try with Node.js v20.9.0 and Node.js v20.15.0 same issue, So I can connect generator-jhipster: 8.6.0 & jhipster-7-templates: npm:[email protected] with my installed KHipster Version(1.16.0) ? @sendilkumarn

KHipster Version(1.16.0)

  • [] Checking this box is mandatory (this is just to show you read everything)
@1235wsg
Copy link

1235wsg commented Dec 7, 2024

降低你的node 版本 至 14

@vmartowicz
Copy link

@javagrails s I understand generator-jhipster : 8.7.3 is SB 3 compatible but KHipster Version(1.16.0) is SB 2 compatible

I ask @sendilkumarn in #429 any guidance in upgrading. Maybe I can help

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