Comments (9)
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\[email protected] 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\[email protected] 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.<anonymous> (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\[email protected] 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\[email protected] 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.<anonymous> (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>
from server.
Please install node.js v16.
You can find it at https://nodejs.org/dist/v16.18.1/.
from server.
@iliakan Hi, could you provide more details about this, why it does not work with node 18? Is there any other workaround?
from server.
added workaround, please git pull and try again.
from server.
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\[email protected] 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\[email protected] 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>
from 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
...
from server.
from server.
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.
?
from server.
Because Webpack uses these calls for hashing.
from server.
Related Issues (20)
- builds static assets and start server error HOT 3
- Cannot find module 'bunyan'
- How can I get the generated html files? HOT 2
- UX problem when clicking topic links in RTL languages
- 127.0.0.1 refused to connect HOT 1
- can't run service
- Error: Already exists an entry with slug:primitive-conversions-questions HOT 1
- Page gets slow and laggy on scrolling to the comments section HOT 1
- Failed to @extend "$font-burger"
- Cannot start the server HOT 7
- BUG - ./edit command fails - throwing error - cannot find module 'stylus'
- BUG - error loading application based on pt.javascript.info repository HOT 2
- Support for image translation (SVG) HOT 5
- [Bug report] local server page next button css styling broken
- If I want to change page elements, where should I go to modify them?
- `edit.cmd fa` fails: node: --openssl-legacy-provider is not allowed in NODE_OPTIONS HOT 3
- Can not run server HOT 1
- TypeError: fs.rmSync is not a function
- Project running error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.