jerryc127 / hexo-theme-butterfly

🦋 A Hexo Theme: Butterfly
https://butterfly.js.org
Apache License 2.0
6.8k stars 1.24k forks source link

[Bug]: inject 任何代码都会报错 #1488

Closed shirohako closed 2 months ago

shirohako commented 2 months ago

使用的 Butterfly 版本? | What version of Butterfly are you use?

4.14.0-b2

是否修改过主题文件? || Has the theme files been modified?

不是 (No)

使用的瀏覽器? || What browse are you using?

Chrome

使用的系統? || What operating system are you using?

Windows

依賴插件 | Package dependencies Information

PS C:\Users\ame\Project\idc> npm ls --depth 0
kirisame-house@1.0.0 C:\Users\ame\Project\idc
├── hexo-generator-archive@2.0.0
├── hexo-generator-category@2.0.0
├── hexo-generator-index@3.0.0
├── hexo-generator-sitemap@3.0.1
├── hexo-generator-tag@2.0.0
├── hexo-renderer-ejs@2.0.0
├── hexo-renderer-marked@6.3.0
├── hexo-renderer-pug@3.0.0
├── hexo-renderer-stylus@3.0.1
├── hexo-server@3.0.0
├── hexo-theme-landscape@1.0.0
└── hexo@7.2.0

問題描述 | Describe the bug

inject:
  head:
    # - <link rel="stylesheet" href="/xxx.css">
  bottom:
    # - <script src="xxxx"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
PS C:\Users\ame\Project\idc> npm run build

> kirisame-house@1.0.0 build
> hexo generate

INFO  Validating config
INFO  
  ===================================================================
      #####  #    # ##### ##### ###### #####  ###### #      #   #
      #    # #    #   #     #   #      #    # #      #       # #
      #####  #    #   #     #   #####  #    # #####  #        #
      #    # #    #   #     #   #      #####  #      #        #
      #    # #    #   #     #   #      #   #  #      #        #
      #####   ####    #     #   ###### #    # #      ######   #
                            4.14.0-b2
  ===================================================================
INFO  Start processing
INFO  Files loaded in 1.89 s
ERROR 
TypeError: C:\Users\ame\Project\idc\themes\butterfly\layout\includes\additional-js.pug:47
    45|       != partial("includes/third-party/newest-comments/index", {}, { cache: true })
    46|
  > 47|   != fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
    48|
    49|   != partial("includes/third-party/effect", {}, { cache: true })
    50|

data.join is not a function
    at Object.<anonymous> (C:\Users\ame\Project\idc\themes\butterfly\scripts\helpers\page.js:57:15)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5702:95)
    at Cache.apply (C:\Users\ame\Project\idc\node_modules\hexo-util\dist\cache.js:22:21)
    at Object.fragmentCache (C:\Users\ame\Project\idc\node_modules\hexo\dist\plugins\helper\fragment_cache.js:9:26)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5702:46)
    at template (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5890:7)
    at _View._compiled (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:123:67)
    at _View.render (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:48:21)
    at C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\index.js:60:29
    at tryCatcher (C:\Users\ame\Project\idc\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Users\ame\Project\idc\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\router.js:43:9)
    at Readable.read (node:internal/streams/readable:737:12)
    at resume_ (node:internal/streams/readable:1255:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ERROR
TypeError: C:\Users\ame\Project\idc\themes\butterfly\layout\includes\additional-js.pug:47
    45|       != partial("includes/third-party/newest-comments/index", {}, { cache: true })
    46|
  > 47|   != fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
    48|
    49|   != partial("includes/third-party/effect", {}, { cache: true })
    50|

data.join is not a function
    at Object.<anonymous> (C:\Users\ame\Project\idc\themes\butterfly\scripts\helpers\page.js:57:15)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5702:95)
    at Cache.apply (C:\Users\ame\Project\idc\node_modules\hexo-util\dist\cache.js:22:21)
    at Object.fragmentCache (C:\Users\ame\Project\idc\node_modules\hexo\dist\plugins\helper\fragment_cache.js:9:26)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5702:46)
    at template (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5890:7)
    at _View._compiled (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:123:67)
    at _View.render (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:48:21)
    at C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\index.js:60:29
    at tryCatcher (C:\Users\ame\Project\idc\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Users\ame\Project\idc\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\router.js:43:9)
    at Readable.read (node:internal/streams/readable:737:12)
    at resume_ (node:internal/streams/readable:1255:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ERROR
TypeError: C:\Users\ame\Project\idc\themes\butterfly\layout\includes\additional-js.pug:47
    45|       != partial("includes/third-party/newest-comments/index", {}, { cache: true })
    46|
  > 47|   != fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
    48|
    49|   != partial("includes/third-party/effect", {}, { cache: true })
    50|

data.join is not a function
    at Object.<anonymous> (C:\Users\ame\Project\idc\themes\butterfly\scripts\helpers\page.js:57:15)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5702:95)
    at Cache.apply (C:\Users\ame\Project\idc\node_modules\hexo-util\dist\cache.js:22:21)
    at Object.fragmentCache (C:\Users\ame\Project\idc\node_modules\hexo\dist\plugins\helper\fragment_cache.js:9:26)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5702:46)
    at template (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5890:7)
    at _View._compiled (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:123:67)
    at _View.render (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:48:21)
    at C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\index.js:60:29
    at tryCatcher (C:\Users\ame\Project\idc\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Users\ame\Project\idc\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\router.js:43:9)
    at Readable.read (node:internal/streams/readable:737:12)
    at resume_ (node:internal/streams/readable:1255:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ERROR
TypeError: C:\Users\ame\Project\idc\themes\butterfly\layout\includes\additional-js.pug:47
    45|       != partial("includes/third-party/newest-comments/index", {}, { cache: true })
    46|
  > 47|   != fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
    48|
    49|   != partial("includes/third-party/effect", {}, { cache: true })
    50|

data.join is not a function
    at Object.<anonymous> (C:\Users\ame\Project\idc\themes\butterfly\scripts\helpers\page.js:57:15)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5702:95)
    at Cache.apply (C:\Users\ame\Project\idc\node_modules\hexo-util\dist\cache.js:22:21)
    at Object.fragmentCache (C:\Users\ame\Project\idc\node_modules\hexo\dist\plugins\helper\fragment_cache.js:9:26)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5702:46)
    at template (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5890:7)
    at _View._compiled (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:123:67)
    at _View.render (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:48:21)
    at C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\index.js:60:29
    at tryCatcher (C:\Users\ame\Project\idc\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Users\ame\Project\idc\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\router.js:43:9)
    at Readable.read (node:internal/streams/readable:737:12)
    at resume_ (node:internal/streams/readable:1255:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ERROR
TypeError: C:\Users\ame\Project\idc\themes\butterfly\layout\includes\additional-js.pug:47
    45|       != partial("includes/third-party/newest-comments/index", {}, { cache: true })
    46|
  > 47|   != fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
    48|
    49|   != partial("includes/third-party/effect", {}, { cache: true })
    50|

data.join is not a function
    at Object.<anonymous> (C:\Users\ame\Project\idc\themes\butterfly\scripts\helpers\page.js:57:15)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5200:95)
    at Cache.apply (C:\Users\ame\Project\idc\node_modules\hexo-util\dist\cache.js:22:21)
    at Object.fragmentCache (C:\Users\ame\Project\idc\node_modules\hexo\dist\plugins\helper\fragment_cache.js:9:26)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5200:46)
    at template (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5388:7)
    at _View._compiled (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:123:67)
    at _View.render (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:48:21)
    at C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\index.js:60:29
    at tryCatcher (C:\Users\ame\Project\idc\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Users\ame\Project\idc\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\router.js:43:9)
    at Readable.read (node:internal/streams/readable:737:12)
    at resume_ (node:internal/streams/readable:1255:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ERROR
TypeError: C:\Users\ame\Project\idc\themes\butterfly\layout\includes\additional-js.pug:47
    45|       != partial("includes/third-party/newest-comments/index", {}, { cache: true })
    46|
  > 47|   != fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
    48|
    49|   != partial("includes/third-party/effect", {}, { cache: true })
    50|

data.join is not a function
    at Object.<anonymous> (C:\Users\ame\Project\idc\themes\butterfly\scripts\helpers\page.js:57:15)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5702:95)
    at Cache.apply (C:\Users\ame\Project\idc\node_modules\hexo-util\dist\cache.js:22:21)
    at Object.fragmentCache (C:\Users\ame\Project\idc\node_modules\hexo\dist\plugins\helper\fragment_cache.js:9:26)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5702:46)
    at template (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5890:7)
    at _View._compiled (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:123:67)
    at _View.render (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:48:21)
    at C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\index.js:60:29
    at tryCatcher (C:\Users\ame\Project\idc\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Users\ame\Project\idc\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\router.js:43:9)
    at Readable.read (node:internal/streams/readable:737:12)
    at resume_ (node:internal/streams/readable:1255:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ERROR
TypeError: C:\Users\ame\Project\idc\themes\butterfly\layout\includes\additional-js.pug:47
    45|       != partial("includes/third-party/newest-comments/index", {}, { cache: true })
    46|
  > 47|   != fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
    48|
    49|   != partial("includes/third-party/effect", {}, { cache: true })
    50|

data.join is not a function
    at Object.<anonymous> (C:\Users\ame\Project\idc\themes\butterfly\scripts\helpers\page.js:57:15)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5200:95)
    at Cache.apply (C:\Users\ame\Project\idc\node_modules\hexo-util\dist\cache.js:22:21)
    at Object.fragmentCache (C:\Users\ame\Project\idc\node_modules\hexo\dist\plugins\helper\fragment_cache.js:9:26)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5200:46)
    at template (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5388:7)
    at _View._compiled (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:123:67)
    at _View.render (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:48:21)
    at C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\index.js:60:29
    at tryCatcher (C:\Users\ame\Project\idc\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Users\ame\Project\idc\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\router.js:43:9)
    at Readable.read (node:internal/streams/readable:737:12)
    at resume_ (node:internal/streams/readable:1255:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ERROR 
TypeError: C:\Users\ame\Project\idc\themes\butterfly\layout\includes\additional-js.pug:47
    45|       != partial("includes/third-party/newest-comments/index", {}, { cache: true })
    46|
  > 47|   != fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
    48|
    49|   != partial("includes/third-party/effect", {}, { cache: true })
    50|

data.join is not a function
    at Object.<anonymous> (C:\Users\ame\Project\idc\themes\butterfly\scripts\helpers\page.js:57:15)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5200:95)
    at Cache.apply (C:\Users\ame\Project\idc\node_modules\hexo-util\dist\cache.js:22:21)
    at Object.fragmentCache (C:\Users\ame\Project\idc\node_modules\hexo\dist\plugins\helper\fragment_cache.js:9:26)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5200:46)
    at template (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5388:7)
    at _View._compiled (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:123:67)
    at _View.render (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:48:21)
    at C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\index.js:60:29
    at tryCatcher (C:\Users\ame\Project\idc\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Users\ame\Project\idc\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\router.js:43:9)
    at Readable.read (node:internal/streams/readable:737:12)
    at resume_ (node:internal/streams/readable:1255:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ERROR
TypeError: C:\Users\ame\Project\idc\themes\butterfly\layout\includes\additional-js.pug:47
    45|       != partial("includes/third-party/newest-comments/index", {}, { cache: true })
    46|
  > 47|   != fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
    48|
    49|   != partial("includes/third-party/effect", {}, { cache: true })
    50|

data.join is not a function
    at Object.<anonymous> (C:\Users\ame\Project\idc\themes\butterfly\scripts\helpers\page.js:57:15)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5946:95)
    at Cache.apply (C:\Users\ame\Project\idc\node_modules\hexo-util\dist\cache.js:22:21)
    at Object.fragmentCache (C:\Users\ame\Project\idc\node_modules\hexo\dist\plugins\helper\fragment_cache.js:9:26)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5946:46)
    at template (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:6134:7)
    at _View._compiled (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:123:67)
    at _View.render (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:48:21)
    at C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\index.js:60:29
    at tryCatcher (C:\Users\ame\Project\idc\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Users\ame\Project\idc\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\router.js:43:9)
    at Readable.read (node:internal/streams/readable:737:12)
    at resume_ (node:internal/streams/readable:1255:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ERROR
TypeError: C:\Users\ame\Project\idc\themes\butterfly\layout\includes\additional-js.pug:47
    45|       != partial("includes/third-party/newest-comments/index", {}, { cache: true })
    46|
  > 47|   != fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
    48|
    49|   != partial("includes/third-party/effect", {}, { cache: true })
    50|

data.join is not a function
    at Object.<anonymous> (C:\Users\ame\Project\idc\themes\butterfly\scripts\helpers\page.js:57:15)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:6108:95)
    at Cache.apply (C:\Users\ame\Project\idc\node_modules\hexo-util\dist\cache.js:22:21)
    at Object.fragmentCache (C:\Users\ame\Project\idc\node_modules\hexo\dist\plugins\helper\fragment_cache.js:9:26)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:6108:46)
    at template (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:6296:7)
    at _View._compiled (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:123:67)
    at _View.render (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:48:21)
    at C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\index.js:60:29
    at tryCatcher (C:\Users\ame\Project\idc\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Users\ame\Project\idc\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\router.js:43:9)
    at Readable.read (node:internal/streams/readable:737:12)
    at resume_ (node:internal/streams/readable:1255:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ERROR
TypeError: C:\Users\ame\Project\idc\themes\butterfly\layout\includes\additional-js.pug:47
    45|       != partial("includes/third-party/newest-comments/index", {}, { cache: true })
    46|
  > 47|   != fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
    48|
    49|   != partial("includes/third-party/effect", {}, { cache: true })
    50|

data.join is not a function
    at Object.<anonymous> (C:\Users\ame\Project\idc\themes\butterfly\scripts\helpers\page.js:57:15)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:6108:95)
    at Cache.apply (C:\Users\ame\Project\idc\node_modules\hexo-util\dist\cache.js:22:21)
    at Object.fragmentCache (C:\Users\ame\Project\idc\node_modules\hexo\dist\plugins\helper\fragment_cache.js:9:26)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:6108:46)
    at template (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:6296:7)
    at _View._compiled (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:123:67)
    at _View.render (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:48:21)
    at C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\index.js:60:29
    at tryCatcher (C:\Users\ame\Project\idc\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Users\ame\Project\idc\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\router.js:43:9)
    at Readable.read (node:internal/streams/readable:737:12)
    at resume_ (node:internal/streams/readable:1255:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ERROR
TypeError: C:\Users\ame\Project\idc\themes\butterfly\layout\includes\additional-js.pug:47
    45|       != partial("includes/third-party/newest-comments/index", {}, { cache: true })
    46|
  > 47|   != fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
    48|
    49|   != partial("includes/third-party/effect", {}, { cache: true })
    50|

data.join is not a function
    at Object.<anonymous> (C:\Users\ame\Project\idc\themes\butterfly\scripts\helpers\page.js:57:15)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:6108:95)
    at Cache.apply (C:\Users\ame\Project\idc\node_modules\hexo-util\dist\cache.js:22:21)
    at Object.fragmentCache (C:\Users\ame\Project\idc\node_modules\hexo\dist\plugins\helper\fragment_cache.js:9:26)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:6108:46)
    at template (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:6296:7)
    at _View._compiled (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:123:67)
    at _View.render (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:48:21)
    at C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\index.js:60:29
    at tryCatcher (C:\Users\ame\Project\idc\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Users\ame\Project\idc\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\router.js:43:9)
    at Readable.read (node:internal/streams/readable:737:12)
    at resume_ (node:internal/streams/readable:1255:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ERROR
TypeError: C:\Users\ame\Project\idc\themes\butterfly\layout\includes\additional-js.pug:47
    45|       != partial("includes/third-party/newest-comments/index", {}, { cache: true })
    46|
  > 47|   != fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
    48|
    49|   != partial("includes/third-party/effect", {}, { cache: true })
    50|

data.join is not a function
    at Object.<anonymous> (C:\Users\ame\Project\idc\themes\butterfly\scripts\helpers\page.js:57:15)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5200:95)
    at Cache.apply (C:\Users\ame\Project\idc\node_modules\hexo-util\dist\cache.js:22:21)
    at Object.fragmentCache (C:\Users\ame\Project\idc\node_modules\hexo\dist\plugins\helper\fragment_cache.js:9:26)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5200:46)
    at template (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:5388:7)
    at _View._compiled (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:123:67)
    at _View.render (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:48:21)
    at C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\index.js:60:29
    at tryCatcher (C:\Users\ame\Project\idc\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Users\ame\Project\idc\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\router.js:43:9)
    at Readable.read (node:internal/streams/readable:737:12)
    at resume_ (node:internal/streams/readable:1255:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ERROR
TypeError: C:\Users\ame\Project\idc\themes\butterfly\layout\includes\additional-js.pug:47
    45|       != partial("includes/third-party/newest-comments/index", {}, { cache: true })
    46|
  > 47|   != fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
    48|
    49|   != partial("includes/third-party/effect", {}, { cache: true })
    50|

data.join is not a function
    at Object.<anonymous> (C:\Users\ame\Project\idc\themes\butterfly\scripts\helpers\page.js:57:15)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:6108:95)
    at Cache.apply (C:\Users\ame\Project\idc\node_modules\hexo-util\dist\cache.js:22:21)
    at Object.fragmentCache (C:\Users\ame\Project\idc\node_modules\hexo\dist\plugins\helper\fragment_cache.js:9:26)
    at eval (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:6108:46)
    at template (eval at wrap (C:\Users\ame\Project\idc\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:6296:7)
    at _View._compiled (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:123:67)
    at _View.render (C:\Users\ame\Project\idc\node_modules\hexo\dist\theme\view.js:48:21)
    at C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\index.js:60:29
    at tryCatcher (C:\Users\ame\Project\idc\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Users\ame\Project\idc\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Users\ame\Project\idc\node_modules\hexo\dist\hexo\router.js:43:9)
    at Readable.read (node:internal/streams/readable:737:12)
    at resume_ (node:internal/streams/readable:1255:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

出現問題網站 | Website

localhost

shirohako commented 2 months ago

感谢Mycpen提醒,配置文件少些了-