ui5-community / generator-ui5-project

Generator for UI5-based web-apps which use the official UI5 tooling and support multiple deployment targets such as the SAP Business Technology Platform
Apache License 2.0
44 stars 27 forks source link

Cannot find module 'object-assign-deep' #27

Closed HelloJack0 closed 1 year ago

HelloJack0 commented 2 years ago

Easy-Ui5 version:

Run yo easy-ui5 --plugins to print all relevant version strings Node.js: v14.15.3 yeoman-environment: 3.8.1 generator-ui5-project: 0.1.1

OS/version:

Windows 10 (64bit)

Browser/version (+device/version):

Chrome 87.0.4280.88

Steps to reproduce the problem:

  1. Step 1 npm install -g yo generator-easy-ui5
  2. Step 2 yo easy-ui5
  3. Step 3 Select your generator? generator-ui5-project

What is the expected result?

The project is generated successfully.

What happens instead?

Error easy-ui5 project

Cannot find module 'object-assign-deep' Require stack:

...\AppData\Roaming\npm\node_modules\generator-easy-ui5\plugin-generators\generator-ui5-project\helpers\fileaccess.js ...\AppData\Roaming\npm\node_modules\generator-easy-ui5\plugin-generators\generator-ui5-project\generators\additionalmodules\index.js ...\AppData\Roaming\npm\node_modules\generator-easy-ui5\node_modules\yeoman-environment\lib\util\esm.js ...\AppData\Roaming\npm\node_modules\generator-easy-ui5\node_modules\yeoman-environment\lib\store.js ...\AppData\Roaming\npm\node_modules\generator-easy-ui5\node_modules\yeoman-environment\lib\environment.js ...\AppData\Roaming\npm\node_modules\generator-easy-ui5\generators\app\index.js ...\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\util\esm.js ...\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\store.js ...\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\environment.js ...\AppData\Roaming\npm\node_modules\yo\lib\router.js ...\AppData\Roaming\npm\node_modules\yo\lib\cli.js

Any other information? (attach screenshot if possible)

nicoschoenteich commented 2 years ago

Hi there, which subgenerator did you run (app?) and can you maybe send a screen shot of your selections in the steps of the subgenerator? Could you also provide the full error logs? I think that would be helpful, too. Cheers

hosssa commented 2 years ago

I get the same error since the last update of easy-ui5. Same environment, except Node.js: v12.19.0

Is there any solution yet?

...\AppData\Roaming\npm\node_modules\generator-easy-ui5\plugin-generators\generator-ui5-project>npm install fixed it for now.

nicoschoenteich commented 2 years ago

Hm unfortunately I can't reproduce the error. I'm glad the quick fix worked for you. Actually, that is exactly what the generator-easy-ui5 does after downloading the plugin-generators (e.g. generator-ui5-project). I will look into this further and hopefully come back with a solution.

petermuessig commented 2 years ago

@nicogeburek: I think this happens when the npm install fails in the generator in the post-install phase of the easy-ui5 generator. Maybe we need to add some check here...

petermuessig commented 2 years ago

With the forceUpdate function this could be fixed:

yo easy-ui5 project --forceUpdate
petermuessig commented 1 year ago

The issue should be fixed with the latest update of Easy UI5 to version 3.6.0!