Closed bendeguz-szatmari closed 4 years ago
@bendeguz-szatmari : have a look at https://github.com/jhipster/generator-jhipster/issues/12593
Thanks, meanwhile I have found another solution which also works: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46006#issuecomment-699079290
Hi,
I am using the microservice-ecommerce-store-istio-deployment.jdl example. The import-jdl succeeds, but webpack task fails:
Webpack: Starting ... Webpack: Starting ...
 Compile modules  Build modules  Optimize modules  Emit files
Webpack: Finished after 48.974 seconds.
ERROR in D:/_development/jdl-samples/store/node_modules/@types/enzyme/index.d.ts(732,69): TS2304: Cannot find name 'Cheerio'.
1133 modules
ERROR in D:/_development/jdl-samples/store/node_modules/@types/enzyme/index.d.ts ERROR in D:/_development/jdl-samples/store/node_modules/@types/enzyme/index.d.ts(384,15): TS2304: Cannot find name 'Cheerio'.
ERROR in D:/_development/jdl-samples/store/node_modules/@types/enzyme/index.d.ts ERROR in D:/_development/jdl-samples/store/node_modules/@types/enzyme/index.d.ts(732,69): TS2304: Cannot find name 'Cheerio'. npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! store@0.0.1-SNAPSHOT webpack:
node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js "--config" "webpack/webpack.dev.js" "--env.stats=minimal"
npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the store@0.0.1-SNAPSHOT webpack script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\SzatmariBendeguz\AppData\Roaming\npm-cache_logs\2020-10-06T08_38_02_191Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! store@0.0.1-SNAPSHOT webpack:build:main:
npm run webpack -- --config webpack/webpack.dev.js --env.stats=minimal
npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the store@0.0.1-SNAPSHOT webpack:build:main script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\SzatmariBendeguz\AppData\Roaming\npm-cache_logs\2020-10-06T08_38_02_229Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! store@0.0.1-SNAPSHOT webpack:build:
npm run cleanup && npm run webpack:build:main
npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the store@0.0.1-SNAPSHOT webpack:build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\SzatmariBendeguz\AppData\Roaming\npm-cache_logs\2020-10-06T08_38_02_264Z-debug.log
JHipster info:
INFO! Executing jhipster:info Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "11.0.2" 2019-01-15 OpenJDK Runtime Environment 18.9 (build 11.0.2+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
git version 2.28.0.windows.1
node: v12.18.4
npm: 6.14.6
yarn: 1.21.1
Docker version 19.03.13, build 4484c46d9d
docker-compose version 1.27.4, build 40524192
identical .jhipster\Customer.json identical .jhipster\Invoice.json identical .jhipster\Notification.json identical .jhipster\OrderItem.json identical .jhipster\Product.json identical .jhipster\ProductCategory.json identical .jhipster\ProductOrder.json identical .jhipster\Shipment.json
Any suggestion on this? Switching to clientFramework angularX resolves the problem so I guess it is related to React, however I would like to use React.
Best Regards, Bendegúz