Skip to content

Not working in Node.js v22 #1

@nicoschoenteich

Description

@nicoschoenteich

Describe the bug
The npm init wrapper (this create-easy-ui5 package) is not working in Node.js v22. Error:

 ~/Desktop/tmp/ npm init easy-ui5

> npx
> easy-ui5

/Users/I533499/.npm/_npx/94306e80cf3675b9/node_modules/yeoman-environment/lib/store.js:76
    Object.assign(maybeGenerator, additionalMeta);
           ^

TypeError: Cannot add property resolved, object is not extensible
    at Function.assign (<anonymous>)
    at Store.get (/Users/I533499/.npm/_npx/94306e80cf3675b9/node_modules/yeoman-environment/lib/store.js:76:12)
    at composability.getByNamespace (/Users/I533499/.npm/_npx/94306e80cf3675b9/node_modules/yeoman-environment/lib/namespace-composability.js:20:37)
    at Environment.create (/Users/I533499/.npm/_npx/94306e80cf3675b9/node_modules/yeoman-environment/lib/environment.js:889:29)
    at instantiateAndRun (/Users/I533499/.npm/_npx/94306e80cf3675b9/node_modules/yeoman-environment/lib/environment.js:1096:36)
    at Environment.run (/Users/I533499/.npm/_npx/94306e80cf3675b9/node_modules/yeoman-environment/lib/environment.js:1113:12)
    at Object.<anonymous> (/Users/I533499/.npm/_npx/94306e80cf3675b9/node_modules/create-easy-ui5/index.js:26:7)
    at Module._compile (node:internal/modules/cjs/loader:1554:14)
    at Object..js (node:internal/modules/cjs/loader:1706:10)
    at Module.load (node:internal/modules/cjs/loader:1289:32)

Node.js v22.14.0
npm error code 1
npm error path /Users/I533499/Desktop/tmp
npm error command failed
npm error command sh -c easy-ui5
npm error A complete log of this run can be found in: /Users/I533499/.npm/_logs/2025-03-04T09_43_44_054Z-debug-0.log

To Reproduce
Steps to reproduce the behavior:

  1. Run Node.js v22
  2. Run npm init easy-ui5 OR run node . in this repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions