Closed liudonghua123 closed 2 years ago
I also tried to move javascript-tutorial
to root directory and renamed to js
.
Please install node.js v16.
You can find it at https://nodejs.org/dist/v16.18.1/.
@iliakan Hi, could you provide more details about this, why it does not work with node 18? Is there any other workaround?
added workaround, please git pull and try again.
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>
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
...
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 (Usenode --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.
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.
?
Because Webpack uses these calls for hashing.
I followed the guidence on readme, but I got the following errors.
reproduce steps:
cross-env PORT=8080 ./edit en