javascript-tutorial / server

Server for the Modern Javascript Tutorial
https://javascript.info
Other
452 stars 138 forks source link

Error: callback(): The callback was already called. #91

Closed liudonghua123 closed 2 years ago

liudonghua123 commented 2 years ago

I followed the guidence on readme, but I got the following errors.

reproduce steps:

  1. npm install -g bunyan gulp@4 cross-env
  2. mkdir javascript-tutorial
  3. cd javascript-tutorial
  4. git clone https://github.com/javascript-tutorial/server
  5. git clone https://github.com/javascript-tutorial/engine server/modules/engine
  6. git clone https://github.com/javascript-tutorial/en.javascript.info server/repo/en.javascript.info
  7. cd server
  8. npm install
  9. ./edit en # or use cross-env PORT=8080 ./edit en
D:\code\js\javascript-tutorial>ver

Microsoft Windows [Version 10.0.22621.819]

D:\code\js\javascript-tutorial>node -v
v18.12.0

D:\code\js\javascript-tutorial>npm -v
8.5.1

D:\code\js\javascript-tutorial>
D:\code\js\javascript-tutorial\server>cross-env PORT=8080 ./edit en

D:\code\js\javascript-tutorial\server>call gulp edit   | bunyan
[10:04:04] Using gulpfile D:\code\js\javascript-tutorial\server\gulpfile.js
[10:04:04] Starting 'edit'...
[10:04:04] Starting 'webpack'...
[10:04:04] Starting 'engine:koa:tutorial:importWatch'...
[10:04:04] Starting 'livereload'...
[10:04:04] Starting 'server'...
(node:17900) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
(Use `node --trace-deprecation ...` to show where the warning was created)
Livereload server listening
[2022-11-11T02:04:35.436Z]  INFO: application/17900 on DESKTOP-DELL: Boot complete
[10:04:35] 'engine:koa:tutorial:importWatch' errored after 32 s
[10:04:35] Error: ENOENT: no such file or directory, lstat 'D:\code\js\javascript-tutorial\server\repo\"en".javascript.info'
    at Object.realpathSync (node:fs:2552:7)
    at new TutorialImporter (D:\code\js\javascript-tutorial\server\modules\engine\koa\tutorial\lib\tutorialImporter.js:24:20)
    at module.exports (D:\code\js\javascript-tutorial\server\modules\engine\koa\tutorial\tasks\importWatch.js:19:18)
[10:04:35] 'edit' errored after 32 s

D:\code\js\javascript-tutorial\server>goto :eof

D:\code\js\javascript-tutorial\server>
D:\code\js\javascript-tutorial\server>edit en

call gulp edit   | bunyan
[10:06:17] Using gulpfile D:\code\js\javascript-tutorial\server\gulpfile.js
[10:06:17] Starting 'edit'...
[10:06:17] Starting 'webpack'...
[10:06:17] Starting 'engine:koa:tutorial:importWatch'...
[10:06:17] Starting 'livereload'...
[10:06:17] Starting 'server'...
(node:21684) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
(Use `node --trace-deprecation ...` to show where the warning was created)
Livereload server listening
[2022-11-11T02:06:21.138Z]  INFO: application/21684 on DESKTOP-DELL: Boot complete
[2022-11-11T02:06:21.184Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: sync PLNKR_ENABLED=undefined
[2022-11-11T02:06:21.184Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: sync D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js
D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js D:\code\js\javascript-tutorial\server\repo\en.javascript.info
[2022-11-11T02:06:21.186Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: syncFolder D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js
[2022-11-11T02:06:21.187Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: syncFolder D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started
[2022-11-11T02:06:21.188Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: syncArticle D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\1-intro
[2022-11-11T02:06:21.215Z]  INFO: application/21684 on DESKTOP-DELL: Server is listening localhost:3000
[10:06:21] Finished 'server' after 4.17 s
[2022-11-11T02:06:21.266Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: importImage D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\1-intro\limitations.svg to D:\code\js\javascript-tutorial\server\public\en\article\intro
[2022-11-11T02:06:21.272Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: syncArticle D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\2-manuals-specifications
[2022-11-11T02:06:21.349Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: syncArticle D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\3-code-editors
[2022-11-11T02:06:21.830Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: syncArticle D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools
[2022-11-11T02:06:21.926Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: importImage D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\chrome.png to D:\code\js\javascript-tutorial\server\public\en\article\devtools
[2022-11-11T02:06:21.930Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: importImage D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\chrome@2x.png to D:\code\js\javascript-tutorial\server\public\en\article\devtools
[2022-11-11T02:06:21.933Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: importImage D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\safari.png to D:\code\js\javascript-tutorial\server\public\en\article\devtools
[2022-11-11T02:06:21.936Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: importImage D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\safari@2x.png to D:\code\js\javascript-tutorial\server\public\en\article\devtools
[2022-11-11T02:06:21.939Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: syncFolder D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\02-first-steps
[2022-11-11T02:06:21.939Z]  INFO: tutorialImporter/21684 on DESKTOP-DELL: syncArticle D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\02-first-steps\01-hello-world
[10:06:22] 'webpack' errored after 5.48 s
[10:06:22] Error: callback(): The callback was already called.
    at context.callback (D:\code\js\javascript-tutorial\server\node_modules\loader-runner\lib\LoaderRunner.js:106:10)
    at Object.<anonymous> (D:\code\js\javascript-tutorial\server\node_modules\css-loader\lib\loader.js:50:18)
    at D:\code\js\javascript-tutorial\server\node_modules\css-loader\lib\processCss.js:236:4
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[10:06:22] 'edit' errored after 5.48 s

goto :eof

D:\code\js\javascript-tutorial\server>
liudonghua123 commented 2 years ago

I also tried to move javascript-tutorial to root directory and renamed to js.

logs ``` D:\javascript-tutorial\server>edit en call gulp edit | bunyan [10:17:21] Using gulpfile D:\javascript-tutorial\server\gulpfile.js [10:17:21] Starting 'edit'... [10:17:21] Starting 'webpack'... [10:17:21] Starting 'engine:koa:tutorial:importWatch'... [10:17:21] Starting 'livereload'... [10:17:21] Starting 'server'... (node:21464) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead (Use `node --trace-deprecation ...` to show where the warning was created) Livereload server listening [2022-11-11T02:17:25.371Z] INFO: application/21464 on DESKTOP-DELL: Boot complete [2022-11-11T02:17:25.409Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: sync PLNKR_ENABLED=undefined [2022-11-11T02:17:25.409Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: sync D:\javascript-tutorial\server\repo\en.javascript.info\1-js D:\javascript-tutorial\server\repo\en.javascript.info\1-js D:\javascript-tutorial\server\repo\en.javascript.info [2022-11-11T02:17:25.411Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: syncFolder D:\javascript-tutorial\server\repo\en.javascript.info\1-js [2022-11-11T02:17:25.413Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: syncFolder D:\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started [2022-11-11T02:17:25.414Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: syncArticle D:\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\1-intro [2022-11-11T02:17:25.440Z] INFO: application/21464 on DESKTOP-DELL: Server is listening localhost:3000 [10:17:25] Finished 'server' after 4.33 s [2022-11-11T02:17:25.490Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: importImage D:\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\1-intro\limitations.svg to D:\javascript-tutorial\server\public\en\article\intro [2022-11-11T02:17:25.495Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: syncArticle D:\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\2-manuals-specifications [2022-11-11T02:17:25.566Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: syncArticle D:\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\3-code-editors [2022-11-11T02:17:26.073Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: syncArticle D:\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools [2022-11-11T02:17:26.158Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: importImage D:\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\chrome.png to D:\javascript-tutorial\server\public\en\article\devtools [2022-11-11T02:17:26.161Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: importImage D:\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\chrome@2x.png to D:\javascript-tutorial\server\public\en\article\devtools [2022-11-11T02:17:26.164Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: importImage D:\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\safari.png to D:\javascript-tutorial\server\public\en\article\devtools [2022-11-11T02:17:26.167Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: importImage D:\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\safari@2x.png to D:\javascript-tutorial\server\public\en\article\devtools [2022-11-11T02:17:26.170Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: syncFolder D:\javascript-tutorial\server\repo\en.javascript.info\1-js\02-first-steps [2022-11-11T02:17:26.171Z] INFO: tutorialImporter/21464 on DESKTOP-DELL: syncArticle D:\javascript-tutorial\server\repo\en.javascript.info\1-js\02-first-steps\01-hello-world [10:17:26] 'webpack' errored after 5.62 s [10:17:26] Error: callback(): The callback was already called. at context.callback (D:\javascript-tutorial\server\node_modules\loader-runner\lib\LoaderRunner.js:106:10) at Object. (D:\javascript-tutorial\server\node_modules\css-loader\lib\loader.js:50:18) at D:\javascript-tutorial\server\node_modules\css-loader\lib\processCss.js:236:4 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [10:17:26] 'edit' errored after 5.63 s goto :eof D:\javascript-tutorial\server> D:\js\server>edit en call gulp edit | bunyan [10:19:14] Using gulpfile D:\js\server\gulpfile.js [10:19:14] Starting 'edit'... [10:19:14] Starting 'webpack'... [10:19:14] Starting 'engine:koa:tutorial:importWatch'... [10:19:14] Starting 'livereload'... [10:19:14] Starting 'server'... (node:21492) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead (Use `node --trace-deprecation ...` to show where the warning was created) Livereload server listening [2022-11-11T02:19:19.083Z] INFO: application/21492 on DESKTOP-DELL: Boot complete [2022-11-11T02:19:19.129Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: sync PLNKR_ENABLED=undefined [2022-11-11T02:19:19.129Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: sync D:\js\server\repo\en.javascript.info\1-js D:\js\server\repo\en.javascript.info\1-js D:\js\server\repo\en.javascript.info [2022-11-11T02:19:19.131Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: syncFolder D:\js\server\repo\en.javascript.info\1-js [2022-11-11T02:19:19.133Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: syncFolder D:\js\server\repo\en.javascript.info\1-js\01-getting-started [2022-11-11T02:19:19.134Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: syncArticle D:\js\server\repo\en.javascript.info\1-js\01-getting-started\1-intro [2022-11-11T02:19:19.162Z] INFO: application/21492 on DESKTOP-DELL: Server is listening localhost:3000 [10:19:19] Finished 'server' after 4.33 s [2022-11-11T02:19:19.208Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: importImage D:\js\server\repo\en.javascript.info\1-js\01-getting-started\1-intro\limitations.svg to D:\js\server\public\en\article\intro [2022-11-11T02:19:19.213Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: syncArticle D:\js\server\repo\en.javascript.info\1-js\01-getting-started\2-manuals-specifications [2022-11-11T02:19:19.282Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: syncArticle D:\js\server\repo\en.javascript.info\1-js\01-getting-started\3-code-editors [2022-11-11T02:19:19.789Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: syncArticle D:\js\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools [2022-11-11T02:19:19.871Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: importImage D:\js\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\chrome.png to D:\js\server\public\en\article\devtools [2022-11-11T02:19:19.873Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: importImage D:\js\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\chrome@2x.png to D:\js\server\public\en\article\devtools [2022-11-11T02:19:19.876Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: importImage D:\js\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\safari.png to D:\js\server\public\en\article\devtools [2022-11-11T02:19:19.879Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: importImage D:\js\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\safari@2x.png to D:\js\server\public\en\article\devtools [2022-11-11T02:19:19.882Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: syncFolder D:\js\server\repo\en.javascript.info\1-js\02-first-steps [2022-11-11T02:19:19.883Z] INFO: tutorialImporter/21492 on DESKTOP-DELL: syncArticle D:\js\server\repo\en.javascript.info\1-js\02-first-steps\01-hello-world [10:19:20] 'webpack' errored after 5.7 s [10:19:20] Error: callback(): The callback was already called. at context.callback (D:\js\server\node_modules\loader-runner\lib\LoaderRunner.js:106:10) at Object. (D:\js\server\node_modules\css-loader\lib\loader.js:50:18) at D:\js\server\node_modules\css-loader\lib\processCss.js:236:4 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [10:19:20] 'edit' errored after 5.7 s goto :eof D:\js\server> ```
iliakan commented 2 years ago

Please install node.js v16.

You can find it at https://nodejs.org/dist/v16.18.1/.

liudonghua123 commented 2 years ago

@iliakan Hi, could you provide more details about this, why it does not work with node 18? Is there any other workaround?

iliakan commented 2 years ago

added workaround, please git pull and try again.

liudonghua123 commented 2 years ago

I updated the server code, however, it did not work for me.

D:\code\js\javascript-tutorial\server>git pull
remote: Enumerating objects: 17, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 12 (delta 10), reused 7 (delta 5), pack-reused 0
Unpacking objects: 100% (12/12), 1.09 KiB | 5.00 KiB/s, done.
From https://github.com/javascript-tutorial/server
   8184a8e..1146c6f  master     -> origin/master
Updating 8184a8e..1146c6f
Fast-forward
 README.md    | 3 +--
 dev          | 4 ++--
 edit         | 2 +-
 package.json | 2 +-
 4 files changed, 5 insertions(+), 6 deletions(-)

D:\code\js\javascript-tutorial\server>edit.cmd  en

call gulp edit   | bunyan
[23:37:21] Using gulpfile D:\code\js\javascript-tutorial\server\gulpfile.js
[23:37:21] Starting 'edit'...
[23:37:21] Starting 'webpack'...
[23:37:21] Starting 'engine:koa:tutorial:importWatch'...
[23:37:21] Starting 'livereload'...
[23:37:21] Starting 'server'...
(node:10152) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
(Use `node --trace-deprecation ...` to show where the warning was created)
Livereload server listening
[2022-11-13T15:38:51.362Z]  INFO: application/10152 on DESKTOP-DELL: Boot complete
[2022-11-13T15:38:51.611Z]  INFO: tutorialImporter/10152 on DESKTOP-DELL: sync PLNKR_ENABLED=undefined
[2022-11-13T15:38:51.612Z]  INFO: tutorialImporter/10152 on DESKTOP-DELL: sync D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js
D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js D:\code\js\javascript-tutorial\server\repo\en.javascript.info
[2022-11-13T15:38:51.615Z]  INFO: tutorialImporter/10152 on DESKTOP-DELL: syncFolder D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js
[2022-11-13T15:38:51.647Z]  INFO: tutorialImporter/10152 on DESKTOP-DELL: syncFolder D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started
[2022-11-13T15:38:51.654Z]  INFO: tutorialImporter/10152 on DESKTOP-DELL: syncArticle D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\1-intro
[2022-11-13T15:38:51.932Z]  INFO: application/10152 on DESKTOP-DELL: Server is listening localhost:3000
[23:38:51] Finished 'server' after 1.5 min
[2022-11-13T15:39:21.139Z]  INFO: tutorialImporter/10152 on DESKTOP-DELL: importImage D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\1-intro\limitations.svg to D:\code\js\javascript-tutorial\server\public\en\article\intro
[2022-11-13T15:39:21.201Z]  INFO: tutorialImporter/10152 on DESKTOP-DELL: syncArticle D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\2-manuals-specifications
[2022-11-13T15:39:21.313Z]  INFO: application/10152 on DESKTOP-DELL: --> GET / (requestId=fe019c17-ea79-428a-be4e-50d5f266e8e5, event=request-start, method=GET, url=/, referer="")
    ua: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.35
{"name":"application","hostname":"DESKTOP-DELL","pid":10152,"requestId":"fe019c17-ea79-428a-be4e-50d5f266e8e5","level":30,"event":"request-start","method":"GET","url":"/","referer":"","ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.35","msg":"--> GET /","time":"2022-11-13T15:39:21.313Z","v":0}
[2022-11-13T15:39:23.045Z] ERROR: application/10152 on DESKTOP-DELL: <-- GET / (requestId=fe019c17-ea79-428a-be4e-50d5f266e8e5, event=request-end, method=GET, url=/, status=500, timeDuration=1732)
{"name":"application","hostname":"DESKTOP-DELL","pid":10152,"requestId":"fe019c17-ea79-428a-be4e-50d5f266e8e5","level":20,"msg":"bodyParser will parse","time":"2022-11-13T15:39:21.314Z","v":0}
{"name":"application","hostname":"DESKTOP-DELL","pid":10152,"requestId":"fe019c17-ea79-428a-be4e-50d5f266e8e5","level":20,"msg":"render template frontpage","time":"2022-11-13T15:39:21.450Z","v":0}
{"name":"application","hostname":"DESKTOP-DELL","pid":10152,"requestId":"fe019c17-ea79-428a-be4e-50d5f266e8e5","level":50,"event":"request-end","method":"GET","url":"/","status":500,"timeDuration":1732,"msg":"<-- GET /","time":"2022-11-13T15:39:23.045Z","v":0}
{"name":"application","hostname":"DESKTOP-DELL","pid":10152,"requestId":"fe019c17-ea79-428a-be4e-50d5f266e8e5","level":50,"message":"D:\\code\\js\\javascript-tutorial\\server\\modules\\frontpage\\templates\\blocks\\_frontpage-content\\index.pug:34\n    32|       +e.inner\n    33|         +e.part= t('tutorial.part', {num: 2})\n  > 34|         +e.title= folder.title\n    35|         +e.description!= topArticlesRendered.ui.content\n    36|         +b.list\n    37|           +partList(folder.children)\n\nCannot read properties of undefined (reading 'title')","stack":"TypeError: D:\\code\\js\\javascript-tutorial\\server\\modules\\frontpage\\templates\\blocks\\_frontpage-content\\index.pug:34\n    32|       +e.inner\n    33|         +e.part= t('tutorial.part', {num: 2})\n  > 34|         +e.title= folder.title\n    35|         +e.description!= topArticlesRendered.ui.content\n    36|         +b.list\n    37|           +partList(folder.children)\n\nCannot read properties of undefined (reading 'title')\n    at block (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:298:64)\n    at block (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:1489:10)\n    at block (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:1452:10)\n    at block (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:844:10)\n    at Object.pug_interp (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:700:10)\n    at Object.pug_interp (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:839:32)\n    at Object.pug_interp (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:1449:25)\n    at Object.pug_interp (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:1486:17)\n    at block (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:295:17)\n    at block (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:1489:10)\n    at block (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:1452:10)\n    at block (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:844:10)\n    at Object.pug_interp (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:700:10)\n    at Object.pug_interp (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:839:32)\n    at Object.pug_interp (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:1449:25)\n    at Object.pug_interp (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:1486:17)\n    at block (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:284:17)\n    at block (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:1489:10)\n    at block (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:1452:10)\n    at block (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:844:10)\n    at Object.pug_interp (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:700:10)\n    at Object.pug_interp (eval at wrap (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\pug-runtime\\wrap.js:6:10), <anonymous>:839:32)","referer":"","cookie":"_ga=GA1.1.1927874906.1664427199; crisp-client%2Fsession%2F3ad30257-c192-4773-955d-fb05a4b41af3=session_6d4e2f9e-eae1-42da-a268-c462a06b5261; i18n_redirected=en; _ga_BBJ3R80PJT=GS1.1.1664439363.2.0.1664439363.0.0.0","requestVerbose":{"host":"localhost:3000","protocol":"http","method":"GET","url":"/","headers":{"host":"localhost:3000","connection":"keep-alive","sec-ch-ua":"\"Microsoft Edge\";v=\"107\", \"Chromium\";v=\"107\", \"Not=A?Brand\";v=\"24\"","sec-ch-ua-mobile":"?0","sec-ch-ua-platform":"\"Windows\"","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.35","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","sec-fetch-site":"none","sec-fetch-mode":"navigate","sec-fetch-user":"?1","sec-fetch-dest":"document","accept-encoding":"gzip, deflate, br","accept-language":"zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7","cookie":"_ga=GA1.1.1927874906.1664427199; crisp-client%2Fsession%2F3ad30257-c192-4773-955d-fb05a4b41af3=session_6d4e2f9e-eae1-42da-a268-c462a06b5261; i18n_redirected=en; _ga_BBJ3R80PJT=GS1.1.1664439363.2.0.1664439363.0.0.0"},"body":{},"ip":"::1"},"msg":"","time":"2022-11-13T15:39:23.047Z","v":0}
[2022-11-13T15:39:23.047Z] ERROR: application/10152 on DESKTOP-DELL:  (requestId=fe019c17-ea79-428a-be4e-50d5f266e8e5, referer="")
    message: D:\code\js\javascript-tutorial\server\modules\frontpage\templates\blocks\_frontpage-content\index.pug:34
        32|       +e.inner
        33|         +e.part= t('tutorial.part', {num: 2})
      > 34|         +e.title= folder.title
        35|         +e.description!= topArticlesRendered.ui.content
        36|         +b.list
        37|           +partList(folder.children)

    Cannot read properties of undefined (reading 'title')
    --
    stack: TypeError: D:\code\js\javascript-tutorial\server\modules\frontpage\templates\blocks\_frontpage-content\index.pug:34
        32|       +e.inner
        33|         +e.part= t('tutorial.part', {num: 2})
      > 34|         +e.title= folder.title
        35|         +e.description!= topArticlesRendered.ui.content
        36|         +b.list
        37|           +partList(folder.children)

    Cannot read properties of undefined (reading 'title')
        at block (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:298:64)
        at block (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:1489:10)
        at block (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:1452:10)
        at block (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:844:10)
        at Object.pug_interp (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:700:10)
        at Object.pug_interp (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:839:32)
        at Object.pug_interp (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:1449:25)
        at Object.pug_interp (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:1486:17)
        at block (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:295:17)
        at block (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:1489:10)
        at block (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:1452:10)
        at block (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:844:10)
        at Object.pug_interp (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:700:10)
        at Object.pug_interp (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:839:32)
        at Object.pug_interp (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:1449:25)
        at Object.pug_interp (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:1486:17)
        at block (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:284:17)
        at block (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:1489:10)
        at block (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:1452:10)
        at block (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:844:10)
        at Object.pug_interp (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:700:10)
        at Object.pug_interp (eval at wrap (D:\code\js\javascript-tutorial\server\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:839:32)
    --
    cookie: _ga=GA1.1.1927874906.1664427199; crisp-client%2Fsession%2F3ad30257-c192-4773-955d-fb05a4b41af3=session_6d4e2f9e-eae1-42da-a268-c462a06b5261; i18n_redirected=en; _ga_BBJ3R80PJT=GS1.1.1664439363.2.0.1664439363.0.0.0
    --
    requestVerbose: {
      "host": "localhost:3000",
      "protocol": "http",
      "method": "GET",
      "url": "/",
      "headers": {
        "host": "localhost:3000",
        "connection": "keep-alive",
        "sec-ch-ua": "\"Microsoft Edge\";v=\"107\", \"Chromium\";v=\"107\", \"Not=A?Brand\";v=\"24\"",
        "sec-ch-ua-mobile": "?0",
        "sec-ch-ua-platform": "\"Windows\"",
        "upgrade-insecure-requests": "1",
        "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.35",
        "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
        "sec-fetch-site": "none",
        "sec-fetch-mode": "navigate",
        "sec-fetch-user": "?1",
        "sec-fetch-dest": "document",
        "accept-encoding": "gzip, deflate, br",
        "accept-language": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7",
        "cookie": "_ga=GA1.1.1927874906.1664427199; crisp-client%2Fsession%2F3ad30257-c192-4773-955d-fb05a4b41af3=session_6d4e2f9e-eae1-42da-a268-c462a06b5261; i18n_redirected=en; _ga_BBJ3R80PJT=GS1.1.1664439363.2.0.1664439363.0.0.0"
      },
      "body": {},
      "ip": "::1"
    }
{"name":"application","hostname":"DESKTOP-DELL","pid":10152,"requestId":"fe019c17-ea79-428a-be4e-50d5f266e8e5","level":20,"msg":"render template D:\\code\\js\\javascript-tutorial\\server\\modules\\engine\\koa\\error/templates/500.pug","time":"2022-11-13T15:39:23.052Z","v":0}
[2022-11-13T15:39:23.054Z] ERROR: application/10152 on DESKTOP-DELL: Pug file D:\code\js\javascript-tutorial\server\modules\engine\koa\error/templates/500 from code not resolved (requestId=fe019c17-ea79-428a-be4e-50d5f266e8e5)
    Error: Pug file D:\code\js\javascript-tutorial\server\modules\engine\koa\error/templates/500 from code not resolved
        at module.exports [as pugResolve] (D:\code\js\javascript-tutorial\server\modules\engine\server-pug\resolve.js:61:11)
        at Renderer.render (D:\code\js\javascript-tutorial\server\modules\engine\koa\renderer.js:202:31)
        at ctx.render (D:\code\js\javascript-tutorial\server\modules\render.js:19:53)
        at renderError (D:\code\js\javascript-tutorial\server\modules\engine\koa\error\index.js:107:20)
        at D:\code\js\javascript-tutorial\server\modules\engine\koa\error\index.js:133:9
        at async D:\code\js\javascript-tutorial\server\modules\render.js:21:5
        at async D:\code\js\javascript-tutorial\server\modules\engine\koa\nocache.js:17:5
        at async D:\code\js\javascript-tutorial\server\modules\engine\koa\requestLog.js:10:5
        at async D:\code\js\javascript-tutorial\server\modules\engine\koa\requestId.js:9:5
        at async serve (D:\code\js\javascript-tutorial\server\node_modules\koa-static\index.js:53:9)
{"name":"application","hostname":"DESKTOP-DELL","pid":10152,"requestId":"fe019c17-ea79-428a-be4e-50d5f266e8e5","level":50,"err":{"message":"Pug file D:\\code\\js\\javascript-tutorial\\server\\modules\\engine\\koa\\error/templates/500 from code not resolved","name":"Error","stack":"Error: Pug file D:\\code\\js\\javascript-tutorial\\server\\modules\\engine\\koa\\error/templates/500 from code not resolved\n    at module.exports [as pugResolve] (D:\\code\\js\\javascript-tutorial\\server\\modules\\engine\\server-pug\\resolve.js:61:11)\n    at Renderer.render (D:\\code\\js\\javascript-tutorial\\server\\modules\\engine\\koa\\renderer.js:202:31)\n    at ctx.render (D:\\code\\js\\javascript-tutorial\\server\\modules\\render.js:19:53)\n    at renderError (D:\\code\\js\\javascript-tutorial\\server\\modules\\engine\\koa\\error\\index.js:107:20)\n    at D:\\code\\js\\javascript-tutorial\\server\\modules\\engine\\koa\\error\\index.js:133:9\n    at async D:\\code\\js\\javascript-tutorial\\server\\modules\\render.js:21:5\n    at async D:\\code\\js\\javascript-tutorial\\server\\modules\\engine\\koa\\nocache.js:17:5\n    at async D:\\code\\js\\javascript-tutorial\\server\\modules\\engine\\koa\\requestLog.js:10:5\n    at async D:\\code\\js\\javascript-tutorial\\server\\modules\\engine\\koa\\requestId.js:9:5\n    at async serve (D:\\code\\js\\javascript-tutorial\\server\\node_modules\\koa-static\\index.js:53:9)"},"msg":"Pug file D:\\code\\js\\javascript-tutorial\\server\\modules\\engine\\koa\\error/templates/500 from code not resolved","time":"2022-11-13T15:39:23.054Z","v":0}
[2022-11-13T15:39:23.199Z]  INFO: tutorialImporter/10152 on DESKTOP-DELL: syncArticle D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\3-code-editors
[2022-11-13T15:39:23.431Z]  INFO: tutorialImporter/10152 on DESKTOP-DELL: syncArticle D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools
[23:39:26] 'webpack' errored after 2.08 min
[23:39:26] Error: callback(): The callback was already called.
    at context.callback (D:\code\js\javascript-tutorial\server\node_modules\loader-runner\lib\LoaderRunner.js:106:10)
    at Object.<anonymous> (D:\code\js\javascript-tutorial\server\node_modules\css-loader\lib\loader.js:50:18)
    at D:\code\js\javascript-tutorial\server\node_modules\css-loader\lib\processCss.js:236:4
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[23:39:26] 'edit' errored after 2.08 min

goto :eof

D:\code\js\javascript-tutorial\server>
D:\code\js\javascript-tutorial\server>npm i

up to date, audited 1351 packages in 25s

48 packages are looking for funding
  run `npm fund` for details

64 vulnerabilities (45 moderate, 19 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

D:\code\js\javascript-tutorial\server>edit en

call gulp edit   | bunyan
[23:40:29] Using gulpfile D:\code\js\javascript-tutorial\server\gulpfile.js
[23:40:29] Starting 'edit'...
[23:40:29] Starting 'webpack'...
[23:40:29] Starting 'engine:koa:tutorial:importWatch'...
[23:40:29] Starting 'livereload'...
[23:40:29] Starting 'server'...
(node:22120) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
(Use `node --trace-deprecation ...` to show where the warning was created)
Livereload server listening
[2022-11-13T15:40:34.274Z]  INFO: application/22120 on DESKTOP-DELL: Boot complete
[2022-11-13T15:40:34.322Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: sync PLNKR_ENABLED=undefined
[2022-11-13T15:40:34.322Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: sync D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js
D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js D:\code\js\javascript-tutorial\server\repo\en.javascript.info
[2022-11-13T15:40:34.323Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: syncFolder D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js
[2022-11-13T15:40:34.325Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: syncFolder D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started
[2022-11-13T15:40:34.326Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: syncArticle D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\1-intro
[2022-11-13T15:40:34.352Z]  INFO: application/22120 on DESKTOP-DELL: Server is listening localhost:3000
[23:40:34] Finished 'server' after 4.37 s
[2022-11-13T15:40:34.403Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: importImage D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\1-intro\limitations.svg to D:\code\js\javascript-tutorial\server\public\en\article\intro
[2022-11-13T15:40:34.408Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: syncArticle D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\2-manuals-specifications
[2022-11-13T15:40:34.478Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: syncArticle D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\3-code-editors
[2022-11-13T15:40:34.966Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: syncArticle D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools
[2022-11-13T15:40:35.106Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: importImage D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\chrome.png to D:\code\js\javascript-tutorial\server\public\en\article\devtools
[2022-11-13T15:40:35.145Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: importImage D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\chrome@2x.png to D:\code\js\javascript-tutorial\server\public\en\article\devtools
[2022-11-13T15:40:35.205Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: importImage D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\safari.png to D:\code\js\javascript-tutorial\server\public\en\article\devtools
[2022-11-13T15:40:35.242Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: importImage D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\01-getting-started\4-devtools\safari@2x.png to D:\code\js\javascript-tutorial\server\public\en\article\devtools
[2022-11-13T15:40:35.303Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: syncFolder D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\02-first-steps
[2022-11-13T15:40:35.308Z]  INFO: tutorialImporter/22120 on DESKTOP-DELL: syncArticle D:\code\js\javascript-tutorial\server\repo\en.javascript.info\1-js\02-first-steps\01-hello-world
[23:40:35] 'webpack' errored after 5.9 s
[23:40:35] Error: callback(): The callback was already called.
    at context.callback (D:\code\js\javascript-tutorial\server\node_modules\loader-runner\lib\LoaderRunner.js:106:10)
    at Object.<anonymous> (D:\code\js\javascript-tutorial\server\node_modules\css-loader\lib\loader.js:50:18)
    at D:\code\js\javascript-tutorial\server\node_modules\css-loader\lib\processCss.js:236:4
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[23:40:35] 'edit' errored after 5.9 s

goto :eof

D:\code\js\javascript-tutorial\server>
liudonghua123 commented 2 years ago

I need to execute NODE_OPTIONS=--openssl-legacy-provider before edit en.

D:\code\js\javascript-tutorial\server>set NODE_OPTIONS=--openssl-legacy-provider

D:\code\js\javascript-tutorial\server>edit en

call gulp edit   | bunyan
[23:46:34] Using gulpfile D:\code\js\javascript-tutorial\server\gulpfile.js
[23:46:34] Starting 'edit'...
[23:46:34] Starting 'webpack'...
[23:46:34] Starting 'engine:koa:tutorial:importWatch'...
[23:46:34] Starting 'livereload'...
[23:46:34] Starting 'server'...
(node:11632) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
(Use `node --trace-deprecation ...` to show where the warning was created)
Livereload server listening
[2022-11-13T15:46:39.023Z]  INFO: application/11632 on DESKTOP-DELL: Boot complete
...
iliakan commented 2 years ago

Right, added this option to Windows .cmd file too =)

On 13 Nov 2022, at 16:49, liudonghua @.***> wrote:

I need to execute NODE_OPTIONS=--openssl-legacy-provider before edit en.

D:\code\js\javascript-tutorial\server>set NODE_OPTIONS=--openssl-legacy-provider

D:\code\js\javascript-tutorial\server>edit en

call gulp edit | bunyan [23:46:34] Using gulpfile D:\code\js\javascript-tutorial\server\gulpfile.js [23:46:34] Starting 'edit'... [23:46:34] Starting 'webpack'... [23:46:34] Starting 'engine:koa:tutorial:importWatch'... [23:46:34] Starting 'livereload'... [23:46:34] Starting 'server'... (node:11632) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead (Use node --trace-deprecation ... to show where the warning was created) Livereload server listening [2022-11-13T15:46:39.023Z] INFO: application/11632 on DESKTOP-DELL: Boot complete ... — Reply to this email directly, view it on GitHub https://github.com/javascript-tutorial/server/issues/91#issuecomment-1312761478, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACVJGDCXRZZMR3Z2MTYBN3WIEEZ5ANCNFSM6AAAAAAR5FJRMM. You are receiving this because you were mentioned.

liudonghua123 commented 2 years ago

I found the documentation https://nodejs.dev/en/api/v18/cli/#--openssl-legacy-provider, this option was added since v17.0.0 .

see also https://www.infoworld.com/article/3657636/nodejs-18-updates-openssl-support-enables-fetch-api.html, https://www.openssl.org/docs/man3.0/man7/OSSL_PROVIDER-legacy.html.

But why it affect css-loader from the errors, result in Error: callback(): The callback was already called.?

iliakan commented 2 years ago

Because Webpack uses these calls for hashing.