Hi Deepu, Thanks for the wonderful demonstration of extending Jhipster to a more real-world application. I am getting the following error in webpack. Hope you can help me out.
─$ ./gradlew
Task :webpack
store@0.0.1-SNAPSHOT webpack:build /Users/akd/jhip-ecomm
npm run cleanup && npm run webpack:build:main
:webpack
ERROR Failed to compile with 23 errors9:07:59 AM
error in /Users/akd/jhip-ecomm/node_modules/jest-diff/build/diffLines.d.ts
ERROR in /Users/akd/jhip-ecomm/node_modules/jest-diff/build/diffLines.d.ts(8,15):
TS2304: Cannot find name 'DiffOptions'.
error in /Users/akd/jhip-ecomm/node_modules/jest-diff/build/diffLines.d.ts
.....
ERROR in /Users/akd/jhip-ecomm/src/main/webapp/app/modules/login/login.tsx
ERROR in /Users/akd/jhip-ecomm/src/main/webapp/app/modules/login/login.tsx(26,11):
TS2339: Property 'from' does not exist on type '{} | { from: { pathname: string; search: string; }; }'.
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! /Users/anidhula/.npm/_logs/2020-06-25T03_37_59_252Z-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! /Users/anidhula/.npm/_logs/2020-06-25T03_37_59_337Z-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! /Users/anidhula/.npm/_logs/2020-06-25T03_37_59_360Z-debug.log
Task :webpack FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':webpack'.
Process 'command 'npm'' finished with non-zero exit value 2
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Hi Deepu, Thanks for the wonderful demonstration of extending Jhipster to a more real-world application. I am getting the following error in webpack. Hope you can help me out.
─$ ./gradlew
Webpack: Starting ...
Starting type checking service...
Webpack: Starting ...
✔ Compile modules
✔ Build modules
✔ Optimize modules
✔ Emit files
Webpack: Finished after 16.807 seconds.
error in /Users/akd/jhip-ecomm/node_modules/jest-diff/build/diffLines.d.ts
ERROR in /Users/akd/jhip-ecomm/node_modules/jest-diff/build/diffLines.d.ts(8,15):
TS2304: Cannot find name 'DiffOptions'.
error in /Users/akd/jhip-ecomm/node_modules/jest-diff/build/diffLines.d.ts
.....
ERROR in /Users/akd/jhip-ecomm/src/main/webapp/app/modules/login/login.tsx
ERROR in /Users/akd/jhip-ecomm/src/main/webapp/app/modules/login/login.tsx(26,11):
TS2339: Property 'from' does not exist on type '{} | { from: { pathname: string; search: string; }; }'.
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! /Users/anidhula/.npm/_logs/2020-06-25T03_37_59_252Z-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! /Users/anidhula/.npm/_logs/2020-06-25T03_37_59_337Z-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! /Users/anidhula/.npm/_logs/2020-06-25T03_37_59_360Z-debug.log
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':webpack'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at help.gradle.org
BUILD FAILED in 24s
3 actionable tasks: 1 executed, 2 up-to-date
It seems like a lib version Issue, and I see you got it resolved. Let me know if you find any other issue